      if (print_preview_context_.last_error() != PREVIEW_ERROR_BAD_SETTING) {
        Send(new PrintHostMsg_PrintPreviewInvalidPrinterSettings(
            routing_id(), print_pages_params_
-@@ -1172,21 +1177,26 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
+@@ -1187,21 +1192,26 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
                              : 0));
        notify_browser_of_print_failure_ = false;  // Already sent.
      }

     // Validate expected print preview settings.
     if (!job_settings->GetInteger(kPreviewRequestID,
                                   &settings.params.preview_request_id) ||
@@ -1790,6 +1804,13 @@ bool PrintWebViewHelper::UpdatePrintSettings(
     UpdateFrameMarginsCssInfo(*job_settings);
     settings.params.print_scaling_option = GetPrintScalingOption(
         frame, node, source_is_html, *job_settings, settings.params);

   if (ipc_nesting_level_ > 1)
     return;
 
@@ -1172,6 +1172,10 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
 
   UMA_HISTOGRAM_ENUMERATION("PrintPreview.PreviewEvent",
                             PREVIEW_EVENT_REQUESTED, PREVIEW_EVENT_MAX);
