| 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..c73c9ae7d12557d675ba9b69a11bd16a41f131bb 100644
|
| --- a/chrome/browser/resources/print_preview/print_header.js
|
| +++ b/chrome/browser/resources/print_preview/print_header.js
|
| @@ -50,6 +50,16 @@ cr.define('print_preview', function() {
|
| this.updatePrintButton_.bind(this));
|
| document.addEventListener('disableCancelButton',
|
| this.disableCancelButton.bind(this));
|
| + document.addEventListener('PDFGenerationError',
|
| + this.onPDFGenerationError_.bind(this));
|
| + },
|
| +
|
| + /**
|
| + * Executes when an |PDFGenerationError| event is occurs.
|
| + * @private
|
| + */
|
| + onPDFGenerationError_: function() {
|
| + this.printButton_.disabled = true;
|
| },
|
|
|
| /**
|
|
|