summaryrefslogtreecommitdiff
blob: 5d0808c049de818b419117dcaab938d5dd110200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- chrome/browser/ui/webui/print_preview_handler.cc.orig	2011-04-23 09:05:25.000000000 +0200
+++ chrome/browser/ui/webui/print_preview_handler.cc	2011-04-23 09:13:07.000000000 +0200
@@ -28,7 +28,7 @@
 #include "printing/metafile_impl.h"
 #include "printing/print_job_constants.h"
 
-#if defined(OS_POSIX) && !defined(OS_CHROMEOS)
+#if defined(CP_PRINT_SYSTEM_AVAILABLE)
 #include <cups/cups.h>
 
 #include "base/file_util.h"
@@ -42,7 +42,7 @@
 const char kDisableColorOption[] = "disableColorOption";
 const char kSetColorAsDefault[] = "setColorAsDefault";
 
-#if defined(OS_POSIX) && !defined(OS_CHROMEOS)
+#if defined(CP_PRINT_SYSTEM_AVAILABLE)
 const char kColorDevice[] = "ColorDevice";
 #endif
 
@@ -131,7 +131,7 @@
       return;
     }
 
-  #if defined(OS_POSIX) && !defined(OS_CHROMEOS)
+#if defined(CP_PRINT_SYSTEM_AVAILABLE)
     FilePath ppd_file_path;
     if (!file_util::CreateTemporaryFile(&ppd_file_path))
       return;
@@ -153,9 +153,9 @@
       ppdClose(ppd);
     }
     file_util::Delete(ppd_file_path, false);
-  #elif defined(OS_WIN) || defined(OS_CHROMEOS)
+#else
     NOTIMPLEMENTED();
-  #endif
+#endif
 
     DictionaryValue settings_info;
     settings_info.SetBoolean(kDisableColorOption, !supports_color);