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

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: fix_test 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 02fc3590ef530ffd7652b021da8269f6e6a50881..357554de149fa41aa911d21ed0358a0d33148128 100644
--- a/chrome/browser/resources/md_history/browser_service.js
+++ b/chrome/browser/resources/md_history/browser_service.js
@@ -81,6 +81,15 @@ cr.define('md_history', function() {
},
/**
+ * @param {string} histogram
+ * @param {number} value
+ * @param {number} max
+ */
+ recordHistogram: function(histogram, value, max) {
+ chrome.send('metricsHandler:recordInHistogram', [histogram, value, max]);
+ },
+
+ /**
* Record an action in UMA.
* @param {string} actionDesc The name of the action to be logged.
*/
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('k') | chrome/browser/resources/md_history/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698