summaryrefslogtreecommitdiffstats
path: root/printing/print_settings.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 20:39:01 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 20:39:01 +0000
commitfa879e510a7904d2f6e0072a492958ef4eb29d83 (patch)
tree65e60a1463b1a990f19464a278a1cd0066e30791 /printing/print_settings.cc
parent4b3d192b4f437336378b175372b417451943ab93 (diff)
downloadchromium_src-fa879e510a7904d2f6e0072a492958ef4eb29d83.zip
chromium_src-fa879e510a7904d2f6e0072a492958ef4eb29d83.tar.gz
chromium_src-fa879e510a7904d2f6e0072a492958ef4eb29d83.tar.bz2
Linux: Don't call printing::GetColorModelForMode() when USE_CUPS is not defined.
BUG=103183 TEST=none Review URL: http://codereview.chromium.org/8496004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_settings.cc')
-rw-r--r--printing/print_settings.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index ddf3108..312719b 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -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 @@ void GetColorModelForMode(
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 @@ void GetColorModelForMode(
break;
}
}
-#endif
+#endif // defined(USE_CUPS)
bool isColorModelSelected(int model) {
return (model != GRAY &&