Index: printing/printing_context.cc |
diff --git a/printing/printing_context.cc b/printing/printing_context.cc |
index fb554e77f9175b27780642879c8a70b9b6f3cbd4..4e9d03a8469418ead6a83561434bfcb1a3e8db11 100644 |
--- a/printing/printing_context.cc |
+++ b/printing/printing_context.cc |
@@ -5,6 +5,7 @@ |
#include "printing/printing_context.h" |
#include "base/values.h" |
+#include "printing/print_settings_initializer.h" |
namespace printing { |
@@ -33,4 +34,13 @@ PrintingContext::Result PrintingContext::OnError() { |
return abort_printing_ ? CANCEL : FAILED; |
} |
+PrintingContext::Result PrintingContext::UpdatePrintSettings( |
+ const base::DictionaryValue& job_settings, |
+ const PageRanges& ranges) { |
+ PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges); |
+ printing::PrintSettingsInitializer::InitHeaderFooterStrings(job_settings, |
+ &settings_); |
+ return result; |
+} |
+ |
} // namespace printing |