| 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 e6dfa3334bb39e663626421c5fd8ea531248b4aa..4beefe5c179703a42327bd19c4714407106c00a4 100644
|
| --- a/chrome/browser/resources/print_preview/print_preview.js
|
| +++ b/chrome/browser/resources/print_preview/print_preview.js
|
| @@ -149,6 +149,19 @@ function launchNativePrintDialog() {
|
|
|
| /**
|
| * Disables the controls which need the initiator tab to generate preview
|
| + * data. This function is called when the initiator tab has crashed.
|
| + * @param {string} initiatorTabURL The URL of the initiator tab.
|
| + */
|
| +function onInitiatorTabCrashed(initiatorTabURL) {
|
| + disableInputElementsInSidebar();
|
| + displayErrorMessageWithButton(
|
| + localStrings.getString('initiatorTabCrashed'),
|
| + localStrings.getString('reopenPage'),
|
| + function() { chrome.send('reloadCrashedInitiatorTab'); });
|
| +}
|
| +
|
| +/**
|
| + * Disables the controls which need the initiator tab to generate preview
|
| * data. This function is called when the initiator tab is closed.
|
| * @param {string} initiatorTabURL The URL of the initiator tab.
|
| */
|
|
|