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

Unified Diff: chrome/browser/resources/ntp4/most_visited_page.js

Issue 8052028: NTP: Clean up of MetricsHandler class and namespacing chrome.send messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tried to remove dependencies of metricshandler, most still necessary in NewTabUI Created 9 years, 3 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/ntp4/most_visited_page.js
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js
index da86ee6966a0d70d876760af277be30fa53a67b6..4242c10306050d4900808e0a6152bf033a529468 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -141,7 +141,8 @@ cr.define('ntp4', function() {
[encodeURIComponent(this.href),
ntp4.APP_LAUNCH.NTP_MOST_VISITED]);
// Records the index of this tile.
- chrome.send('recordInHistogram', ['NTP_MostVisited', this.index, 8]);
+ chrome.send('metricsHandler:recordInHistogram',
+ ['NTP_MostVisited', this.index, 8]);
}
},

Powered by Google App Engine
This is Rietveld 408576698