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

Unified Diff: chrome/browser/printing/print_dialog_gtk.cc

Issue 8496004: Linux: Don't call printing::GetColorModelForMode() when USE_CUPS is not defined. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | printing/print_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_dialog_gtk.cc
===================================================================
--- chrome/browser/printing/print_dialog_gtk.cc (revision 108912)
+++ chrome/browser/printing/print_dialog_gtk.cc (working copy)
@@ -191,6 +191,7 @@
gtk_print_settings_set_n_copies(gtk_settings_, copies);
gtk_print_settings_set_collate(gtk_settings_, collate);
+#if defined(USE_CUPS)
std::string color_value;
std::string color_setting_name;
printing::GetColorModelForMode(color, &color_setting_name, &color_value);
@@ -214,6 +215,7 @@
break;
}
gtk_print_settings_set(gtk_settings_, kCUPSDuplex, cups_duplex_mode);
+#endif
dhw 2011/11/08 21:03:59 Needs to go after the close brace in the following
Lei Zhang 2011/11/08 21:12:46 Whoops. Will fix.
}
}
if (!page_setup_)
« no previous file with comments | « no previous file | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698