| 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..dda4c9a4edcc87c625c6f6fce65ee2152cc3c89b 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(WIN_PDF_METAFILE_FOR_PRINTING))
|
| save_for_later = save_for_later && skia::IsPreviewMetafile(*canvas);
|
| #endif
|
| if (save_for_later) {
|
|
|