  
  #if BUILDFLAG(ENABLE_BASIC_PRINTING)
  void PrintWebViewHelper::GetPrintSettingsFromUser(
-@@ -2024,6 +1900,7 @@ bool PrintWebViewHelper::CheckForCancel() {
+@@ -2024,6 +1898,7 @@ bool PrintWebViewHelper::CheckForCancel() {
      notify_browser_of_print_failure_ = false;
    return cancel;
  }

   notify_browser_of_print_failure_ = false;
   if (!success)
     LOG(ERROR) << "Failure in OnPrintingDone";
@@ -1521,19 +1419,13 @@ void PrintWebViewHelper::DidFinishPrinting(PrintingResult result) {
       }
       break;
 

-                            ? print_pages_params_->params.document_cookie
-                            : 0));
-      notify_browser_of_print_failure_ = false;  // Already sent.
-    }
     DidFinishPrinting(FAIL_PREVIEW);
     return;
   }
 
-  // Set the options from document if we are previewing a pdf and send a
-  // message to browser.
-  if (print_pages_params_->params.is_first_request &&
