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

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

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Clean up JS Created 4 years 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
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 1d66c9838403de882aeb9d10f55b7102c5a1f300..5f40c0c3775077492320874bf0935ec6199b8c70 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -141,6 +141,7 @@ enum PrintSettingsBuckets {
NON_DEFAULT_MARGINS,
DISTILL_PAGE_UNUSED,
SCALING,
+ PRINT_AS_IMAGE,
PRINT_SETTINGS_BUCKET_BOUNDARY
};
@@ -288,6 +289,12 @@ void ReportPrintSettingsStats(const base::DictionaryValue& settings) {
&external_preview) && external_preview) {
ReportPrintSettingHistogram(EXTERNAL_PDF_PREVIEW);
}
+
+ bool rasterize = false;
+ if (settings.GetBoolean(printing::kSettingRasterizePdf,
+ &rasterize) && rasterize) {
+ ReportPrintSettingHistogram(PRINT_AS_IMAGE);
+ }
}
// Callback that stores a PDF file on disk.

Powered by Google App Engine
This is Rietveld 408576698