Index: chrome/utility/printing_handler.h |
diff --git a/chrome/utility/printing_handler.h b/chrome/utility/printing_handler.h |
index 8d3394d53489f68691c464919f78e8c8e3bc89c9..a9fa6a086a989a91b9902686e14ca03fc844ab78 100644 |
--- a/chrome/utility/printing_handler.h |
+++ b/chrome/utility/printing_handler.h |
@@ -10,10 +10,11 @@ |
#include "build/build_config.h" |
#include "chrome/utility/utility_message_handler.h" |
#include "ipc/ipc_platform_file.h" |
+#include "printing/features/features.h" |
#include "printing/pdf_render_settings.h" |
-#if !defined(ENABLE_PRINT_PREVIEW) && \ |
- !(defined(ENABLE_BASIC_PRINTING) && defined(OS_WIN)) |
+#if !BUILDFLAG(ENABLE_PRINT_PREVIEW) && \ |
+ !(BUILDFLAG(ENABLE_BASIC_PRINTING) && defined(OS_WIN)) |
#error "Windows basic printing or print preview must be enabled" |
#endif |
@@ -43,7 +44,7 @@ class PrintingHandler : public UtilityMessageHandler { |
IPC::PlatformFileForTransit output_file); |
void OnRenderPDFPagesToMetafileStop(); |
#endif // OS_WIN |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, |
const PdfRenderSettings& settings, |
const PwgRasterSettings& bitmap_settings, |
@@ -56,7 +57,7 @@ class PrintingHandler : public UtilityMessageHandler { |
base::File output_file, |
float* scale_factor); |
#endif // OS_WIN |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
bool RenderPDFPagesToPWGRaster(base::File pdf_file, |
const PdfRenderSettings& settings, |
const PwgRasterSettings& bitmap_settings, |