Index: chrome/renderer/pepper/ppb_pdf_impl.cc |
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc |
index ff3baea367f5f7f75acb7817df245cd935b93bd7..388c4dd8d65d224640d56953bdc58c7c4cbd7765 100644 |
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc |
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc |
@@ -372,6 +372,7 @@ const PPB_PDF* PPB_PDF_Impl::GetInterface() { |
// static |
void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) { |
+#if defined(ENABLE_PRINTING) |
PluginInstance* instance = HostGlobals::Get()->GetInstance(instance_id); |
if (!instance) |
return; |
@@ -383,4 +384,5 @@ void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) { |
PrintWebViewHelper* print_view_helper = PrintWebViewHelper::Get(render_view); |
if (print_view_helper) |
print_view_helper->PrintNode(element); |
+#endif |
} |