Index: chrome/browser/printing/printing_message_filter.cc |
diff --git a/chrome/browser/printing/printing_message_filter.cc b/chrome/browser/printing/printing_message_filter.cc |
index 6c416b40a0f2107e51a799fbff588f9b6a807cb7..a74f07e36283f51691c5bd228c3ded376a9d755b 100644 |
--- a/chrome/browser/printing/printing_message_filter.cc |
+++ b/chrome/browser/printing/printing_message_filter.cc |
@@ -21,8 +21,9 @@ |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/child_process_host.h" |
+#include "printing/features/features.h" |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
#endif |
@@ -98,7 +99,7 @@ bool PrintingMessageFilter::OnMessageReceived(const IPC::Message& message) { |
IPC_MESSAGE_HANDLER_DELAY_REPLY(PrintHostMsg_ScriptedPrint, OnScriptedPrint) |
IPC_MESSAGE_HANDLER_DELAY_REPLY(PrintHostMsg_UpdatePrintSettings, |
OnUpdatePrintSettings) |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
IPC_MESSAGE_HANDLER(PrintHostMsg_CheckForCancel, OnCheckForCancel) |
#endif |
IPC_MESSAGE_UNHANDLED(handled = false) |
@@ -305,7 +306,7 @@ void PrintingMessageFilter::OnUpdatePrintSettingsReply( |
} |
} |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
void PrintingMessageFilter::OnCheckForCancel(int32_t preview_ui_id, |
int preview_request_id, |
bool* cancel) { |