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..c92e69416a4901e2abd51eadde6caf8e74b6f950 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -1637,7 +1637,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(WIN_PDF_METAFILE_FOR_PRINTING)) |
save_for_later = save_for_later && skia::IsPreviewMetafile(*canvas); |
#endif |
if (save_for_later) { |