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

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: 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
« no previous file with comments | « no previous file | ui/file_manager/file_manager/background/js/compiled_resources.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82a2b3f005d1d32c60562fbfc0d7f6acee78d2a9..b5c4144728ec1992ed0e445df802dad90656aa12 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}
@@ -88,7 +91,8 @@ function FileBrowserBackground() {
new importer.MediaImportHandler(
this.progressCenter,
this.historyLoader,
- new importer.DriveDuplicateFinder());
+ new importer.DriveDuplicateFinder.Factory(),
+ this.tracker);
/**
* Promise of string data.
« no previous file with comments | « no previous file | ui/file_manager/file_manager/background/js/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698