diff options
author | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 00:25:12 +0000 |
---|---|---|
committer | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 00:25:12 +0000 |
commit | 75ff033a6dd3d94d76cc2942632e2e306fe9e146 (patch) | |
tree | 8ea901c4949e583b1baf033aba0b69ebf97e2abf /chrome/browser/resources/ntp/most_visited.js | |
parent | fee565773acff331a7ef40f0c30d3fb6f05c3c9c (diff) | |
download | chromium_src-75ff033a6dd3d94d76cc2942632e2e306fe9e146.zip chromium_src-75ff033a6dd3d94d76cc2942632e2e306fe9e146.tar.gz chromium_src-75ff033a6dd3d94d76cc2942632e2e306fe9e146.tar.bz2 |
NTP: Clean up of MetricsHandler class and namespacing chrome.send messages.
R=estade@chromium.org
TEST=Stuff compiles and works with no regressions (might want to swap out macros
with mock macros and see if we report the same stuff?).
BUG=97820
Review URL: http://codereview.chromium.org/8052028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104397 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/most_visited.js')
-rw-r--r-- | chrome/browser/resources/ntp/most_visited.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/resources/ntp/most_visited.js b/chrome/browser/resources/ntp/most_visited.js index 1b22027..a6a91ea 100644 --- a/chrome/browser/resources/ntp/most_visited.js +++ b/chrome/browser/resources/ntp/most_visited.js @@ -103,7 +103,7 @@ var MostVisited = (function() { this.data[destinationIndex] = sourceData; this.data[sourceIndex] = destinationData; - chrome.send('recordAction', ['MostVisitedReordered']); + chrome.send('metricsHandler:recordAction', ['MostVisitedReordered']); }, updateSettingsLink: function(hasBlacklistedUrls) { @@ -540,7 +540,7 @@ var MostVisited = (function() { var hoverDuration = (new Date()).getTime() - this.hoverStartTime_; if (hoverDuration > 500) hoverDuration = 500; - chrome.send('recordInHistogram', + chrome.send('metricsHandler:recordInHistogram', [clicked ? 'NewTabPage.HoverTimeClicked' : 'NewTabPage.HoverTimeNotClicked', hoverDuration, @@ -692,7 +692,7 @@ var MostVisited = (function() { item); this.RecordHoverTime_(true); if (index != -1) - chrome.send('recordInHistogram', + chrome.send('metricsHandler:recordInHistogram', ['NewTabPage.MostVisited', index, 8]); } } |