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

Issue 17526008: Log NTP hovers in 1993 clients (Closed)

Created:
7 years, 6 months ago by annark1
Modified:
7 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, jar (doing other things), dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, asvitkine+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Ilya Sherman, Jered, Mark P
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Log NTP hovers in 1993 clients Log the number of times a user mouses over a tile or title on the NTP, for 1993 clients. BUG=254023 TEST=Count mouseovers on 1993 NTP tile/title elements. Go to about:histograms to verify that the correct number has been logged to "NewTabPage.NumberOfMouseOvers" histogram. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210398

Patch Set 1 #

Patch Set 2 : Spacing fixes #

Total comments: 31

Patch Set 3 : Addressing comments #

Patch Set 4 : Removed newline #

Total comments: 6

Patch Set 5 : Addressing comments #

Patch Set 6 : Fixed spacing #

Patch Set 7 : Change to documentation #

Patch Set 8 : Added log call when InstantPage is reset #

Patch Set 9 : Spacing fix #

Total comments: 12

Patch Set 10 : Moved NTPLoggingUserData class and added WebContentsObserver #

Patch Set 11 : Edited histogram summary #

Total comments: 18

Patch Set 12 : Addressed comments #

Total comments: 12

Patch Set 13 : Changed instant_url_ default value #

Patch Set 14 : Addressed comments #

Total comments: 6

Patch Set 15 : Nits #

Patch Set 16 : Rebased #

Total comments: 8

Patch Set 17 : Rebased #

Patch Set 18 : Addressed comments #

Patch Set 19 : Fixed OVERRIDE error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -3 lines) Patch
M chrome/browser/resources/local_ntp/most_visited_util.js View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_ntp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 1 comment Download
M chrome/browser/ui/search/instant_ntp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +83 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +25 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
annark1
Hi Philippe, Here's the CL for logging NTP hovers in 1993 clients. PTAL. Thank you, ...
7 years, 6 months ago (2013-06-21 21:41:39 UTC) #1
beaudoin
+mpearson who may have an opinion, as he's the one who suggested "# of hover ...
7 years, 6 months ago (2013-06-22 01:14:52 UTC) #2
annark1
PTAL palmer@ for security review https://codereview.chromium.org/17526008/diff/2001/chrome/browser/resources/local_ntp/most_visited_thumbnail.js File chrome/browser/resources/local_ntp/most_visited_thumbnail.js (right): https://codereview.chromium.org/17526008/diff/2001/chrome/browser/resources/local_ntp/most_visited_thumbnail.js#newcode20 chrome/browser/resources/local_ntp/most_visited_thumbnail.js:20: link.addEventListener('click', handleClick); Should not ...
7 years, 6 months ago (2013-06-25 16:01:38 UTC) #3
annark
@asvitkine for histograms.xml @jered for everything else Thanks very much! Anna On Tue, Jun 25, ...
7 years, 6 months ago (2013-06-25 16:03:46 UTC) #4
Alexei Svitkine (slow)
Could you set the CL description properly? It seems to be blank. Please include the ...
7 years, 6 months ago (2013-06-25 16:58:35 UTC) #5
annark
Done. On Tue, Jun 25, 2013 at 12:58 PM, <asvitkine@chromium.org> wrote: > Could you set ...
7 years, 6 months ago (2013-06-25 17:11:18 UTC) #6
Alexei Svitkine (slow)
Please also create a crbug for this and set the BUG= appropriately.
7 years, 6 months ago (2013-06-25 17:14:22 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/17526008/diff/17001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/17526008/diff/17001/chrome/browser/ui/search/instant_controller.cc#newcode282 chrome/browser/ui/search/instant_controller.cc:282: }; Should this have DISALLOW_COPY_AND_ASSIGN(NtpLoggingUserData)? https://codereview.chromium.org/17526008/diff/17001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): ...
7 years, 6 months ago (2013-06-25 17:21:20 UTC) #8
Mark P
Alexei found one bug. I have another concern, mentioned using the review tool below. In ...
7 years, 6 months ago (2013-06-25 19:04:32 UTC) #9
annark1
Thanks Alexei and Mark. I've addressed your comments, PTAL. https://codereview.chromium.org/17526008/diff/17001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/17526008/diff/17001/chrome/browser/ui/search/instant_controller.cc#newcode270 chrome/browser/ui/search/instant_controller.cc:270: ...
7 years, 6 months ago (2013-06-25 21:04:11 UTC) #10
Jered
https://codereview.chromium.org/17526008/diff/41001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/17526008/diff/41001/chrome/browser/ui/search/instant_controller.cc#newcode254 chrome/browser/ui/search/instant_controller.cc:254: // Helper class for logging data from the NTP. ...
7 years, 6 months ago (2013-06-26 16:37:56 UTC) #11
palmer
IPC security LGTM
7 years, 5 months ago (2013-06-27 21:36:22 UTC) #12
annark1
I've made some changes based on offline discussions with Mark and Jered. Namely, now we ...
7 years, 5 months ago (2013-06-28 15:30:49 UTC) #13
Jered
This way seems better to me, since I think an increase in non-zero hover counts ...
7 years, 5 months ago (2013-06-28 16:24:17 UTC) #14
annark1
Thanks for the really helpful suggestions, Jered. I have one question regarding setting a 'dummy' ...
7 years, 5 months ago (2013-06-28 18:38:22 UTC) #15
Jered
https://codereview.chromium.org/17526008/diff/47014/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/47014/chrome/browser/ui/search/instant_ntp.cc#newcode57 chrome/browser/ui/search/instant_ntp.cc:57: instant_url_("Needs To Be Set") {} On 2013/06/28 18:38:22, annark1 ...
7 years, 5 months ago (2013-06-28 18:43:08 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/17526008/diff/58001/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/58001/chrome/browser/ui/search/instant_ntp.cc#newcode15 chrome/browser/ui/search/instant_ntp.cc:15: Nit: Remove extra blank line here. https://codereview.chromium.org/17526008/diff/58001/chrome/browser/ui/search/instant_ntp.cc#newcode17 chrome/browser/ui/search/instant_ntp.cc:17: namespace ...
7 years, 5 months ago (2013-06-28 18:50:28 UTC) #17
annark1
Thanks for your comments. https://codereview.chromium.org/17526008/diff/58001/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/58001/chrome/browser/ui/search/instant_ntp.cc#newcode15 chrome/browser/ui/search/instant_ntp.cc:15: On 2013/06/28 18:50:29, Alexei Svitkine ...
7 years, 5 months ago (2013-06-28 19:37:44 UTC) #18
Alexei Svitkine (slow)
lgtm with nits considering adding a TEST= line that explain how to trigger this and ...
7 years, 5 months ago (2013-06-28 20:15:33 UTC) #19
Jered
lgtm Looks great! Please address Alexei's comments before submitting.
7 years, 5 months ago (2013-06-28 20:19:30 UTC) #20
annark1
https://codereview.chromium.org/17526008/diff/64001/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/64001/chrome/browser/ui/search/instant_ntp.cc#newcode84 chrome/browser/ui/search/instant_ntp.cc:84: loader_.Init(GURL(instant_url()), profile, active_tab, on_stale_callback); On 2013/06/28 20:15:34, Alexei Svitkine ...
7 years, 5 months ago (2013-06-28 20:47:26 UTC) #21
beaudoin
LGTM with a couple of nits. https://codereview.chromium.org/17526008/diff/73001/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/73001/chrome/browser/ui/search/instant_ntp.cc#newcode47 chrome/browser/ui/search/instant_ntp.cc:47: virtual void NavigationEntryCommitted ...
7 years, 5 months ago (2013-07-04 16:12:03 UTC) #22
annark1
https://codereview.chromium.org/17526008/diff/73001/chrome/browser/ui/search/instant_ntp.cc File chrome/browser/ui/search/instant_ntp.cc (right): https://codereview.chromium.org/17526008/diff/73001/chrome/browser/ui/search/instant_ntp.cc#newcode47 chrome/browser/ui/search/instant_ntp.cc:47: virtual void NavigationEntryCommitted OVERRIDE( On 2013/07/04 16:12:03, beaudoin wrote: ...
7 years, 5 months ago (2013-07-04 19:25:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17526008/85006
7 years, 5 months ago (2013-07-08 14:46:38 UTC) #24
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-08 14:50:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17526008/104002
7 years, 5 months ago (2013-07-08 16:52:45 UTC) #26
commit-bot: I haz the power
Change committed as 210398
7 years, 5 months ago (2013-07-08 18:47:17 UTC) #27
samarth
7 years, 5 months ago (2013-07-11 18:29:46 UTC) #28
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/17526008/diff/104002/chrome/browser/ui...
File chrome/browser/ui/search/instant_ntp.h (right):

https://chromiumcodereview.appspot.com/17526008/diff/104002/chrome/browser/ui...
chrome/browser/ui/search/instant_ntp.h:45: // Used to log each time the user
mouses over NTP tiles or titles.
Sorry for the extremely late comments but please move this to InstantTab. 
InstantNTP is used to maintaing the _prerendered_ (invisible) NTP contents and
it doesn't make sense for it to be talking about hovers, etc.

Powered by Google App Engine
This is Rietveld 408576698