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

Unified Diff: chrome/browser/resources/md_history/browser_service.js

Issue 2238163002: [MD History] Add UMA stats for switching views and the CBD button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@start_focus_in_search_bar
Patch Set: add test, add grouped history Created 4 years, 4 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: chrome/browser/resources/md_history/browser_service.js
diff --git a/chrome/browser/resources/md_history/browser_service.js b/chrome/browser/resources/md_history/browser_service.js
index 9052df51067dbf2c7ecc7e8daead1b5a530c4c58..b1f842bdbce9022d4466000b768f1f8f01fc7180 100644
--- a/chrome/browser/resources/md_history/browser_service.js
+++ b/chrome/browser/resources/md_history/browser_service.js
@@ -81,6 +81,20 @@ cr.define('md_history', function() {
},
/**
+ * @param {Array} args
+ */
+ recordAction: function(args) {
+ chrome.send('metricsHandler:recordAction', args);
tsergeant 2016/08/15 07:05:17 Replace args with a single argument for the action
calamity 2016/08/17 03:15:28 Done.
+ },
+
+ /**
+ * @param {Array} args
+ */
+ recordHistogram: function(args) {
+ chrome.send('metricsHandler:recordInHistogram', args);
tsergeant 2016/08/15 07:05:17 As above, use specific arguments here rather than
calamity 2016/08/17 03:15:29 Done.
+ },
+
+ /**
* @param {boolean} successful
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698