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

Unified Diff: ui/file_manager/file_manager/background/js/background.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: Address feedback. 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/background/js/background.js
diff --git a/ui/file_manager/file_manager/background/js/background.js b/ui/file_manager/file_manager/background/js/background.js
index f520ba415d08066ce4d158826b465822258cff58..ba4e057a18dbf29f6c828a927b86b046dc8e2ace 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -21,6 +21,9 @@ var LaunchType = {
function FileBrowserBackground() {
BackgroundBase.call(this);
+ /** @type {!analytics.Tracker} */
+ this.tracker = metrics.getTracker();
+
/**
* Synchronous queue for asynchronous calls.
* @type {!AsyncUtil.Queue}
@@ -91,7 +94,8 @@ function FileBrowserBackground() {
new importer.MediaImportHandler(
this.progressCenter,
this.historyLoader,
- new importer.DriveDuplicateFinder());
+ new importer.DriveDuplicateFinder.Factory(),
+ this.tracker);
/**
* Promise of string data.

Powered by Google App Engine
This is Rietveld 408576698