Index: chrome/browser/resources/print_preview.js |
diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js |
index 0bb91592798d17702f4599d8b70922069db6ad5c..665fc402f758813f7a3950bed2b391dcdbe0c7fe 100644 |
--- a/chrome/browser/resources/print_preview.js |
+++ b/chrome/browser/resources/print_preview.js |
@@ -332,12 +332,11 @@ function getSelectedPrinterName() { |
* Asks the browser to print the preview PDF based on current print settings. |
*/ |
function printFile() { |
- $('print-button').classList.add('loading'); |
- $('cancel-button').classList.add('loading'); |
- $('print-summary').innerHTML = localStrings.getString('printing'); |
- removeEventListeners(); |
- |
if (getSelectedPrinterName() != PRINT_TO_PDF) { |
+ $('print-button').classList.add('loading'); |
+ $('cancel-button').classList.add('loading'); |
+ $('print-summary').innerHTML = localStrings.getString('printing'); |
+ removeEventListeners(); |
window.setTimeout(function() { chrome.send('print', [getSettingsJSON()]); }, |
1000); |
} else |