Index: content/renderer/pepper/pepper_plugin_instance_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
index 7d4670fe3e9b35359e21d7bb2fdcbed727eb74c4..2182aa7059e956947f8689218c8c3b8f103b943d 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -86,6 +86,7 @@ |
#include "ppapi/thunk/enter.h" |
#include "ppapi/thunk/ppb_buffer_api.h" |
#include "printing/metafile.h" |
+#include "printing/metafile_impl.h" |
#include "printing/metafile_skia_wrapper.h" |
#include "printing/units.h" |
#include "skia/ext/platform_canvas.h" |
@@ -1637,7 +1638,8 @@ bool PepperPluginInstanceImpl::PrintPage(int page_number, |
// The canvas only has a metafile on it for print preview. |
bool save_for_later = |
(printing::MetafileSkiaWrapper::GetMetafileFromCanvas(*canvas) != NULL); |
-#if defined(OS_MACOSX) || defined(OS_WIN) |
+#if defined(OS_MACOSX) || \ |
+ (defined(OS_WIN) && !defined(PRINTING_WIN_USES_PDF_AS_METAFILE)) |
save_for_later = save_for_later && skia::IsPreviewMetafile(*canvas); |
#endif |
if (save_for_later) { |