diff options
author | rltoscano@chromium.org <rltoscano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-14 00:59:46 +0000 |
---|---|---|
committer | rltoscano@chromium.org <rltoscano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-14 00:59:46 +0000 |
commit | 19d1c2d57b0086979e416e418117314b1af7f2a4 (patch) | |
tree | 43f839607007da5aa0f6d403eb389ce323fad046 /printing/printing_context.cc | |
parent | 57f6212707a418941288c5f127535755e0dbeb17 (diff) | |
download | chromium_src-19d1c2d57b0086979e416e418117314b1af7f2a4.zip chromium_src-19d1c2d57b0086979e416e418117314b1af7f2a4.tar.gz chromium_src-19d1c2d57b0086979e416e418117314b1af7f2a4.tar.bz2 |
Adds option to enable CSS backgrounds for printing.
BUG=113594
Review URL: https://chromiumcodereview.appspot.com/11818062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context.cc')
-rw-r--r-- | printing/printing_context.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/printing/printing_context.cc b/printing/printing_context.cc index 09a93ff..a29b31a 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; } |