    PrintHostMsg_DidPreviewPage_Params preview_page_params;
    // Get the size of the resulting metafile.
    if (!CopyMetafileDataToSharedMem(
-@@ -2114,9 +2134,9 @@ bool PrintWebViewHelper::PreviewPageRendered(int page_number,
+@@ -2114,9 +2141,9 @@ bool PrintWebViewHelper::PreviewPageRendered(int page_number,
        print_pages_params_->params.preview_request_id;
  
    Send(new PrintHostMsg_DidPreviewPage(routing_id(), preview_page_params));

 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled,
                     int /* document cookie */)
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
index 3c9dfc0d1ed3fbceb6dacf663dd8fb4ee9f045d3..55b2350eaa5d46599c767ea4563895602ef00457 100644
--- a/components/printing/renderer/print_web_view_helper.cc
+++ b/components/printing/renderer/print_web_view_helper.cc
@@ -320,7 +320,7 @@ bool PrintingNodeOrPdfFrame(const blink::WebLocalFrame* frame,
   return plugin && plugin->SupportsPaginatedPrint();
 }

   }
 
   SetPrintPagesParams(settings);
@@ -1822,12 +1850,9 @@ bool PrintWebViewHelper::UpdatePrintSettings(
     return true;
 
   if (print_for_preview_)
