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

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

Issue 1204783007: Add metrics for Webstore Gallery Widget app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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 | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js b/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js
index fa9252bfa84ff0d26bc9c882fe64441c8a0c340f..faedd4f1618673b848058b51477b8b147022a82c 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js
@@ -137,7 +137,31 @@ SuggestAppsDialog.prototype.createWidgetPlatformDelegate_ = function() {
INSTALLING_SPINNER_ALT: str('SUGGEST_DIALOG_INSTALLING_SPINNER_ALT')
},
- metricsImpl: metrics,
+ metricsImpl: {
+ /**
+ * @param {string} enumName
+ * @param {number} value
+ * @param {number} enumSize
+ */
+ recordEnum: function(enumName, value, enumSize) {
+ metrics.recordEnum('SuggestApps.' + enumName, value, enumSize);
+ },
+
+ /** @param {string} actionName */
+ recordUserAction: function(actionName) {
+ metrics.recordUserAction('SuggestApps.' + actionName);
+ },
+
+ /** @param {string} intervalName */
+ startInterval: function(intervalName) {
+ metrics.startInterval('SuggestApps.' + intervalName);
+ },
+
+ /** @param {string} intervalName */
+ recordInterval: function(intervalName) {
+ metrics.recordInterval('SuggestApps.' + intervalName);
+ }
+ },
/**
* @param {string} itemId,
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698