fix: default to simplex for printing DuplexMode (#24527)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2020-07-13 22:07:14 -07:00
committed by GitHub
parent 328c5c7b46
commit 4c596ab969

View File

@@ -2039,7 +2039,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<int>(duplex_mode));