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

Unified Diff: printing/printing_context.cc

Issue 11818062: Adds option to enable CSS backgrounds for printing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with trunk. Created 7 years, 11 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/print_settings.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.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index 09a93ff18e0e44219453984651871457389f8bd5..a29b31a6947dab4b9db58d7d62364ce6f5adc8c4 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -78,6 +78,12 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges);
PrintSettingsInitializer::InitHeaderFooterStrings(job_settings, &settings_);
+
+ if (!job_settings.GetBoolean(kSettingShouldPrintBackgrounds,
+ &settings_.should_print_backgrounds)) {
+ NOTREACHED();
+ }
+
return result;
}
« no previous file with comments | « printing/print_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698