Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2073)

Unified Diff: chrome/browser/resources/print_preview/data/destination_store.js

Issue 2969383003: Print Preview: Finish removing global Javascript functions. (Closed)
Patch Set: Clean up Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/data/destination_store.js
diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
index f2faf3fe8affb1ea5cb881212b80a6b91d639024..f1c45979292f1ba7d90cefcb875f5255403de3de 100644
--- a/chrome/browser/resources/print_preview/data/destination_store.js
+++ b/chrome/browser/resources/print_preview/data/destination_store.js
@@ -177,7 +177,6 @@ cr.define('print_preview', function() {
this.useSystemDefaultAsDefault_ =
loadTimeData.getBoolean('useSystemDefaultPrinter');
- this.addEventListeners_();
this.reset_();
}
@@ -1332,18 +1331,6 @@ cr.define('print_preview', function() {
}
},
- /**
- * Binds handlers to events.
- * @private
- */
- addEventListeners_: function() {
- var nativeLayerEventTarget = this.nativeLayer_.getEventTarget();
- this.tracker_.add(
- nativeLayerEventTarget,
- print_preview.NativeLayer.EventType.DESTINATIONS_RELOAD,
- this.onDestinationsReload_.bind(this));
- },
-
/**
* Creates a local PDF print destination.
* @private

Powered by Google App Engine
This is Rietveld 408576698