Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3914)

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.cc

Issue 2889883002: Enable print as image by default (Closed)
Patch Set: Fix JS style guide issue Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_ui.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
index 69e4a1fbf518782b352269912fabca7596646116..e675add9cbe333c980d660d9cf91846c6aef1b8a 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
@@ -413,9 +413,13 @@ content::WebUIDataSource* CreatePrintPreviewUISource() {
source->AddLocalizedString("moreOptionsLabel", IDS_MORE_OPTIONS_LABEL);
source->AddLocalizedString("lessOptionsLabel", IDS_LESS_OPTIONS_LABEL);
+#if !defined(OS_MACOSX) && !defined(OS_WIN)
bool print_pdf_as_image_enabled = base::FeatureList::IsEnabled(
features::kPrintPdfAsImage);
source->AddBoolean("printPdfAsImageEnabled", print_pdf_as_image_enabled);
+#else
+ source->AddBoolean("printPdfAsImageEnabled", false);
+#endif
#if defined(OS_CHROMEOS)
bool cups_and_md_settings_enabled =
!base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698