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

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: 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 6f7c2e685935088bfbe538c1314c9c9f6ee867f5..faea9a89d8785e92bde0b8507d77c1561825d5b9 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -21,6 +21,11 @@ var LaunchType = {
function FileBrowserBackground() {
BackgroundBase.call(this);
+ var analyticsService = analytics.getService('Files.app');
mtomasz 2015/02/12 01:51:03 nit: We usually write Files app without a dot, but
Ben Kwa 2015/02/17 23:01:29 Fixed in another CL. Tracker creation now takes p
+
+ /** @type {!analytics.Tracker} */
+ this.tracker = analyticsService.getTracker('UA-38248358-9');
+
/**
* Synchronous queue for asynchronous calls.
* @type {!AsyncUtil.Queue}
@@ -91,7 +96,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