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 29340a3cdba987dcee8f2a29efb248fb147f99ab..6c08d5818d0aa6c02a85f9048673e036809b2c5f 100644 |
--- a/chrome/renderer/printing/print_web_view_helper.cc |
+++ b/chrome/renderer/printing/print_web_view_helper.cc |
@@ -1368,7 +1368,8 @@ void PrintWebViewHelper::FinishFramePrinting() { |
prep_frame_view_.reset(); |
} |
-#if defined(OS_MACOSX) || defined(OS_WIN) |
+#if defined(OS_MACOSX) || \ |
+ (defined(OS_WIN) && !defined(WIN_PDF_METAFILE_FOR_PRINTING)) |
bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame, |
int page_count, |
const gfx::Size& canvas_size) { |
@@ -1393,7 +1394,7 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame, |
return true; |
} |
-#endif // OS_MACOSX || OS_WIN |
+#endif // OS_MACOSX || !WIN_PDF_METAFILE_FOR_PRINTING |
// static - Not anonymous so that platform implementations can use it. |
void PrintWebViewHelper::ComputePageLayoutInPointsForCss( |