  
    PrepareFrameForPreviewDocument();
  }
-@@ -1202,7 +1213,7 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
+@@ -1217,7 +1228,7 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
  void PrintWebViewHelper::PrepareFrameForPreviewDocument() {
    reset_prep_frame_view_ = false;
  

   const PrintMsg_Print_Params& print_params = print_pages_params_->params;
   const std::vector<int>& pages = print_pages_params_->pages;
 
@@ -1247,6 +1255,7 @@ bool PrintWebViewHelper::CreatePreviewDocument() {
     return false;
   }
 

       int cookie =
           print_pages_params_ ? print_pages_params_->params.document_cookie : 0;
       if (notify_browser_of_print_failure_) {
@@ -1576,9 +1582,13 @@ void PrintWebViewHelper::DidFinishPrinting(PrintingResult result) {
       } else {
         Send(new PrintHostMsg_PrintPreviewCancelled(routing_id(), cookie));
       }
