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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 918713003: Files.app: Add analytics code to instrument cloud import flows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorg/rename metrics events. Fix a metrics loading bug. Created 5 years, 10 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: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 128c7de7cc8e9805715164ae5899bd21a45a127e..b7758a32397482bc8932cda68a118ebc64e6b21a 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -118,6 +118,11 @@ function FileManager() {
*/
this.ui_ = null;
+ /**
+ * @private {analytics.Tracker}
+ */
+ this.tracker_ = null;
+
// --------------------------------------------------------------------------
// Parameters determining the type of file manager.
@@ -433,7 +438,8 @@ FileManager.prototype = /** @struct */ {
this.mediaScanner_),
/** @type {!importer.ImportRunner} */ (
this.mediaImportHandler_),
- new importer.RuntimeCommandWidget());
+ new importer.RuntimeCommandWidget(),
+ this.tracker_);
}
}.bind(this));
@@ -634,6 +640,7 @@ FileManager.prototype = /** @struct */ {
this.mediaScanner_ =
this.backgroundPage_.background.mediaScanner;
this.historyLoader_ = this.backgroundPage_.background.historyLoader;
+ this.tracker_ = this.backgroundPage_.background.tracker;
callback();
}.bind(this));
}.bind(this)));

Powered by Google App Engine
This is Rietveld 408576698