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

Unified Diff: printing/printing_context_no_system_dialog.cc

Issue 54273002: Revert piece of "De-duplicate job_settings parsing code." r231501 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_no_system_dialog.cc
diff --git a/printing/printing_context_no_system_dialog.cc b/printing/printing_context_no_system_dialog.cc
index 7fd2ceebeb7d0f31e6c8e053a6a88f4e7459a439..869620f503890a0b24b956a4e28b45a6a3f07846 100644
--- a/printing/printing_context_no_system_dialog.cc
+++ b/printing/printing_context_no_system_dialog.cc
@@ -81,6 +81,10 @@ PrintingContext::Result PrintingContextNoSystemDialog::UseDefaultSettings() {
PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings(
bool target_is_pdf,
bool external_preview) {
+
+ if (settings_.dpi() == 0)
+ UseDefaultSettings();
+
return OK;
}
« no previous file with comments | « printing/printing_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698