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

Unified Diff: printing/printing_context_cairo.cc

Issue 6758014: PrintPreview: Added a helper function to get print job settings from dictionary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac build error. Created 9 years, 9 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') | printing/printing_context_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_cairo.cc
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc
index c721e3d1352c315adc995e8562042405737dee74..17e78850a46e5208326bae46f3433f441f5f4ec5 100644
--- a/printing/printing_context_cairo.cc
+++ b/printing/printing_context_cairo.cc
@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "base/values.h"
-#include "printing/print_job_constants.h"
#include "printing/print_settings_initializer_gtk.h"
#include "printing/units.h"
@@ -154,10 +153,10 @@ PrintingContext::Result PrintingContextCairo::UpdatePrintSettings(
DCHECK(!in_print_job_);
bool landscape;
- if (!job_settings.GetBoolean(kSettingLandscape, &landscape))
+ if (!GetSettingsFromDict(job_settings, &landscape, NULL))
return OnError();
- settings_.SetOrientation(landscape);
+ settings_.SetOrientation(landscape);
settings_.ranges = ranges;
// TODO(kmadhusu): Update other print settings such as number of copies,
« no previous file with comments | « printing/printing_context.cc ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698