diff options
Diffstat (limited to 'chrome/renderer/print_web_view_helper_mac.mm')
-rw-r--r-- | chrome/renderer/print_web_view_helper_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper_mac.mm b/chrome/renderer/print_web_view_helper_mac.mm index e46320e..9105a11 100644 --- a/chrome/renderer/print_web_view_helper_mac.mm +++ b/chrome/renderer/print_web_view_helper_mac.mm @@ -55,7 +55,7 @@ void PrintWebViewHelper::PrintPageInternal( bool PrintWebViewHelper::CreatePreviewDocument( const PrintMsg_PrintPages_Params& params, WebKit::WebFrame* frame, - WebKit::WebNode* node) { + WebKit::WebNode* node, bool draft) { PrintMsg_Print_Params printParams = params.params; UpdatePrintableSizeInPrintParameters(frame, node, &printParams); @@ -67,6 +67,7 @@ bool PrintWebViewHelper::CreatePreviewDocument( return false; printing::PreviewMetafile metafile; + metafile.set_draft(draft); if (!metafile.Init()) return false; |