Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 7822014: Fix the print preview regression bug caused by r98926. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index c8fdcd657c0f8ca5e241ada807f9175c819cc328..83607c1a08542ac883b57553cabfef628146ceda 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -904,6 +904,9 @@ function onDidGetPreviewPageCount(pageCount, isModifiable, previewResponseId,
pageSettings.updateState(pageCount);
previewModifiable = isModifiable;
document.title = localStrings.getStringF('printPreviewTitleFormat', jobTitle);
+ if (!previewModifiable && pageSettings.requestPrintPreviewIfNeeded())
+ return;
+
cr.dispatchSimpleEvent(document, 'updateSummary');
}
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698