Index: chrome/renderer/printing/print_web_view_helper.cc |
diff --git a/chrome/renderer/printing/print_web_view_helper.cc b/chrome/renderer/printing/print_web_view_helper.cc |
index 05247b11d5c6cc17af3fd5b5bce02bed76bd11d1..cd318a23956851c0337b17716dfce50090de5f6a 100644 |
--- a/chrome/renderer/printing/print_web_view_helper.cc |
+++ b/chrome/renderer/printing/print_web_view_helper.cc |
@@ -67,7 +67,7 @@ const char kPageLoadScriptFormat[] = |
const char kPageSetupScriptFormat[] = "setup(%s);"; |
-#if defined(ENABLE_FULL_PRINTING) |
+#if defined(ENABLE_PRINT_PREVIEW) |
bool g_is_preview_enabled_ = true; |
#else |
bool g_is_preview_enabled_ = false; |
@@ -849,10 +849,10 @@ void PrintWebViewHelper::PrintPage(blink::WebLocalFrame* frame, |
bool PrintWebViewHelper::OnMessageReceived(const IPC::Message& message) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(PrintWebViewHelper, message) |
-#if !defined(DISABLE_BASIC_PRINTING) |
+#if defined(ENABLE_BASIC_PRINTING) |
IPC_MESSAGE_HANDLER(PrintMsg_PrintPages, OnPrintPages) |
IPC_MESSAGE_HANDLER(PrintMsg_PrintForSystemDialog, OnPrintForSystemDialog) |
-#endif // !DISABLE_BASIC_PRINTING |
+#endif // ENABLE_BASIC_PRINTING |
IPC_MESSAGE_HANDLER(PrintMsg_InitiatePrintPreview, OnInitiatePrintPreview) |
IPC_MESSAGE_HANDLER(PrintMsg_PrintPreview, OnPrintPreview) |
IPC_MESSAGE_HANDLER(PrintMsg_PrintForPrintPreview, OnPrintForPrintPreview) |
@@ -949,7 +949,7 @@ bool PrintWebViewHelper::GetPrintFrame(blink::WebLocalFrame** frame) { |
return true; |
} |
-#if !defined(DISABLE_BASIC_PRINTING) |
+#if defined(ENABLE_BASIC_PRINTING) |
void PrintWebViewHelper::OnPrintPages() { |
blink::WebLocalFrame* frame; |
if (GetPrintFrame(&frame)) |
@@ -964,7 +964,7 @@ void PrintWebViewHelper::OnPrintForSystemDialog() { |
} |
Print(frame, print_preview_context_.source_node()); |
} |
-#endif // !DISABLE_BASIC_PRINTING |
+#endif // ENABLE_BASIC_PRINTING |
void PrintWebViewHelper::GetPageSizeAndContentAreaFromPageLayout( |
const PageSizeMargins& page_layout_in_points, |