Index: chrome/browser/resources/print_preview/native_layer.js |
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js |
index d4b57a1d4dbfeb1e97204624e53008d486feef2a..2d9aa00635ac64d97e483803746424b6bb7bea16 100644 |
--- a/chrome/browser/resources/print_preview/native_layer.js |
+++ b/chrome/browser/resources/print_preview/native_layer.js |
@@ -63,7 +63,6 @@ cr.define('print_preview', function() { |
global.onDidPreviewPage = this.onDidPreviewPage_.bind(this); |
global.updatePrintPreview = this.onUpdatePrintPreview_.bind(this); |
global.onDidGetAccessToken = this.onDidGetAccessToken_.bind(this); |
- global.autoCancelForTesting = this.autoCancelForTesting_.bind(this); |
global.onPrivetPrinterChanged = this.onPrivetPrinterChanged_.bind(this); |
global.onPrivetCapabilitiesSet = |
this.onPrivetCapabilitiesSet_.bind(this); |
@@ -761,17 +760,6 @@ cr.define('print_preview', function() { |
}, |
/** |
- * Simulates a user click on the print preview dialog cancel button. Used |
- * only for testing. |
- * @private |
- */ |
- autoCancelForTesting_: function() { |
- var properties = {view: window, bubbles: true, cancelable: true}; |
- var click = new MouseEvent('click', properties); |
- document.querySelector('#print-header .cancel').dispatchEvent(click); |
- }, |
- |
- /** |
* @param {{serviceName: string, name: string}} printer Specifies |
* information about the printer that was added. |
* @private |