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

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

Issue 2255033002: [MD History] Copy stats from the old history page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sidebar_stats
Patch Set: rebase 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 357554de149fa41aa911d21ed0358a0d33148128..6d1e3f187bfd11b98be22f5cd2e76eb3afef179f 100644
--- a/chrome/browser/resources/md_history/browser_service.js
+++ b/chrome/browser/resources/md_history/browser_service.js
@@ -91,10 +91,12 @@ cr.define('md_history', function() {
/**
* Record an action in UMA.
- * @param {string} actionDesc The name of the action to be logged.
+ * @param {string} action The name of the action to be logged.
*/
- recordAction: function(actionDesc) {
- chrome.send('metricsHandler:recordAction', [actionDesc]);
+ recordAction: function(action) {
+ if (action.indexOf('_') == -1)
+ action = 'HistoryPage_' + action;
+ chrome.send('metricsHandler:recordAction', [action]);
},
/**

Powered by Google App Engine
This is Rietveld 408576698