summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/most_visited.js
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 17:07:11 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 17:07:11 +0000
commitec908a828a1856aacd1a65f6ba94d6d925efe880 (patch)
treefc17de36108034b1bd466e37bbd407f137a1ff67 /chrome/browser/resources/ntp/most_visited.js
parent52c3d437ae03483641f567f36d8e2d77a41aa656 (diff)
downloadchromium_src-ec908a828a1856aacd1a65f6ba94d6d925efe880.zip
chromium_src-ec908a828a1856aacd1a65f6ba94d6d925efe880.tar.gz
chromium_src-ec908a828a1856aacd1a65f6ba94d6d925efe880.tar.bz2
Switch to finer grained histograms for NTP hover time.
BUG=89341 TEST=none Review URL: http://codereview.chromium.org/7471001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/most_visited.js')
-rw-r--r--chrome/browser/resources/ntp/most_visited.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/resources/ntp/most_visited.js b/chrome/browser/resources/ntp/most_visited.js
index 9a24fba..9107695 100644
--- a/chrome/browser/resources/ntp/most_visited.js
+++ b/chrome/browser/resources/ntp/most_visited.js
@@ -526,8 +526,8 @@ var MostVisited = (function() {
// Thumbnail hovering
- // TODO(mmenke): Either implement prerendering based on hovering,
- // or remove this code.
+ // TODO(mmenke): Either implement preconnect/prerendering based on
+ // hovering, or remove this code.
/**
* Record the time the mouse has been hovering over a thumbnail.
@@ -538,13 +538,13 @@ var MostVisited = (function() {
if (!this.hoverStartTime_)
return;
var hoverDuration = (new Date()).getTime() - this.hoverStartTime_;
- if (hoverDuration > 4000)
- hoverDuration = 4000;
+ if (hoverDuration > 500)
+ hoverDuration = 500;
chrome.send('recordInHistogram',
[clicked ? 'NewTabPage.HoverTimeClicked'
: 'NewTabPage.HoverTimeNotClicked',
hoverDuration,
- 4000]);
+ 500]);
this.hoverStartTime_ = null;
},