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

Unified Diff: printing/print_settings.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
« chrome/browser/printing/print_dialog_gtk.cc ('K') | « printing/print_settings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings.cc
===================================================================
--- printing/print_settings.cc (revision 108912)
+++ printing/print_settings.cc (working copy)
@@ -11,7 +11,7 @@
namespace printing {
-#if defined (USE_CUPS)
+#if defined(USE_CUPS)
void GetColorModelForMode(
int color_mode, std::string* color_setting_name, std::string* color_value) {
#if defined(OS_MACOSX)
@@ -24,7 +24,7 @@
const char kCUPSColorModel[] = "cups-ColorModel";
const char kCUPSPrintoutMode[] = "cups-PrintoutMode";
const char kCUPSProcessColorModel[] = "cups-ProcessColorModel";
-#endif
+#endif // defined(OS_MACOSX)
color_setting_name->assign(kCUPSColorModel);
switch (color_mode) {
@@ -96,7 +96,7 @@
break;
}
}
-#endif
+#endif // defined(USE_CUPS)
bool isColorModelSelected(int model) {
return (model != GRAY &&
« chrome/browser/printing/print_dialog_gtk.cc ('K') | « printing/print_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698