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

Unified Diff: chrome/browser/resources/print_preview/color_settings.js

Issue 8280002: PrintPreview: Added code to honor the grayscale color model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « chrome/browser/printing/print_system_task_proxy.cc ('k') | printing/print_job_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/color_settings.js
diff --git a/chrome/browser/resources/print_preview/color_settings.js b/chrome/browser/resources/print_preview/color_settings.js
index 9289c9f5c05c2a2aa935af8efc0a27414f2920b3..f64616b15ec3521e03c9931330493a84968bdcad 100644
--- a/chrome/browser/resources/print_preview/color_settings.js
+++ b/chrome/browser/resources/print_preview/color_settings.js
@@ -77,8 +77,12 @@ cr.define('print_preview', function() {
this.colorOption_.setAttribute('aria-hidden', disableColorOption);
var setColorAsDefault = e.printerCapabilities.setColorAsDefault;
- this.printerColorModelForColor_ =
- e.printerCapabilities.printerColorModelForColor;
+ if (e.printerCapabilities.printerColorModelForColor) {
+ this.printerColorModelForColor_ =
+ e.printerCapabilities.printerColorModelForColor;
+ } else {
+ this.printerColorModelForColor_ = ColorSettings.COLOR;
+ }
if (e.printerCapabilities.printerColorModelForBlack) {
this.printerColorModelForBlack_ =
e.printerCapabilities.printerColorModelForBlack;
« no previous file with comments | « chrome/browser/printing/print_system_task_proxy.cc ('k') | printing/print_job_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698