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

Unified Diff: printing/printing_context.cc

Issue 1124433006: Allow page range selection in system dialog called from preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « printing/printing_context.h ('k') | printing/printing_context_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index 9748a17075cf72ff0e4d12c8bccc4163f93bb12f..16f1103f5cc5f754c6e59ffd5e58eaf49a808fb1 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -118,10 +118,13 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
}
bool show_system_dialog = false;
- job_settings.GetBoolean(printing::kSettingShowSystemDialog,
- &show_system_dialog);
+ job_settings.GetBoolean(kSettingShowSystemDialog, &show_system_dialog);
- return UpdatePrinterSettings(open_in_external_preview, show_system_dialog);
+ int page_count = 0;
+ job_settings.GetInteger(kSettingPreviewPageCount, &page_count);
+
+ return UpdatePrinterSettings(open_in_external_preview, show_system_dialog,
+ page_count);
}
} // namespace printing
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698