Index: chrome/browser/resources/print_preview/print_header.js |
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js |
index 593b0989d1db05f77cf9077c74f9d868fc15aa73..364a371ca5e9e0e63a8281c4fbc134d613561777 100644 |
--- a/chrome/browser/resources/print_preview/print_header.js |
+++ b/chrome/browser/resources/print_preview/print_header.js |
@@ -50,6 +50,15 @@ cr.define('print_preview', function() { |
this.updatePrintButton_.bind(this)); |
document.addEventListener('disableCancelButton', |
this.disableCancelButton.bind(this)); |
+ document.addEventListener('errorOccurred', |
+ this.onErrorOccurred.bind(this)); |
+ }, |
+ |
+ /** |
+ * Executes when an |errorOccured| event is occurs. |
+ */ |
+ onErrorOccurred: function() { |
+ this.printButton_.disabled = true; |
}, |
/** |