diff options
Diffstat (limited to 'printing/printing_context_mac.mm')
-rw-r--r-- | printing/printing_context_mac.mm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm index cf6ea9f..9357e77 100644 --- a/printing/printing_context_mac.mm +++ b/printing/printing_context_mac.mm @@ -11,7 +11,6 @@ #include "base/mac/scoped_cftyperef.h" #include "base/sys_string_conversions.h" #include "base/values.h" -#include "printing/print_job_constants.h" #include "printing/print_settings_initializer_mac.h" namespace printing { @@ -93,14 +92,12 @@ PrintingContext::Result PrintingContextMac::UpdatePrintSettings( print_info_.reset([[NSPrintInfo sharedPrintInfo] copy]); bool landscape; - if (!job_settings.GetBoolean(kSettingLandscape, &landscape)) - return OnError(); - settings_.SetOrientation(landscape); - std::string printer_name; - if (!job_settings.GetString(kSettingPrinterName, &printer_name)) + if (!GetSettingsFromDict(job_settings, &landscape, &printer_name)) return OnError(); + settings_.SetOrientation(landscape); + if (!SetPrinter(printer_name)) return OnError(); |