diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index 13d3ff7751c3..08a772e3142e 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -2025,7 +2025,8 @@ void WebContents::Print(gin_helper::Arguments* args) { } // Duplex type user wants to use. - printing::mojom::DuplexMode duplex_mode; + printing::mojom::DuplexMode duplex_mode = + printing::mojom::DuplexMode::kSimplex; options.Get("duplexMode", &duplex_mode); settings.SetIntKey(printing::kSettingDuplexMode, static_cast(duplex_mode));