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

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

Issue 2975663003: Print Preview: Fix followup issues for removing global JS functions (Closed)
Patch Set: 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/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 8b6becb34f35f1896248eebe559c5f17861aa32d..cb37122f4152a77309db7f95515b293ab1d45ab8 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -84,7 +84,8 @@ cr.define('print_preview', function() {
* @private
*/
this.destinationStore_ = new print_preview.DestinationStore(
- this.nativeLayer_, this.userInfo_, this.appState_);
+ this.nativeLayer_, this.userInfo_, this.appState_,
+ this.listenerTracker);
/**
* Data store which holds printer sharing invitations.
@@ -339,7 +340,6 @@ cr.define('print_preview', function() {
print_preview.PrintPreviewFocusManager.getInstance().initialize();
cr.ui.FocusOutlineManager.forDocument(document);
this.listenerTracker.add('print-failed', this.onPrintFailed_.bind(this));
- this.destinationStore_.addWebUIEventListeners(this.listenerTracker);
this.listenerTracker.add(
'use-cloud-print', this.onCloudPrintEnable_.bind(this));
this.listenerTracker.add(

Powered by Google App Engine
This is Rietveld 408576698