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

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

Issue 2741483002: Check for RPCS printers and return error if Win8+ (Closed)
Patch Set: Format Created 3 years, 9 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 | « chrome/browser/resources/print_preview/previewarea/preview_area.js ('k') | printing/backend/win_helper.cc » ('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 04fdd1dab9f6df519e9a2a00b8ae421a33d9bcf8..7c0afb06c5aaf8a0073b1df9dec1bfffd4aca797 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -957,7 +957,10 @@ cr.define('print_preview', function() {
*/
onSettingsInvalid_: function() {
this.uiState_ = PrintPreview.UiState_.ERROR;
+ this.isPreviewGenerationInProgress_ = false;
+ this.printHeader_.isPrintButtonEnabled = false;
console.error('Invalid settings error reported from native layer');
+ this.previewArea_.cancelTimeout();
this.previewArea_.showCustomMessage(
loadTimeData.getString('invalidPrinterSettings'));
},
« no previous file with comments | « chrome/browser/resources/print_preview/previewarea/preview_area.js ('k') | printing/backend/win_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698