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

Issue 111423005: [Most Visited] Log suggestion provider to UMA (Closed)

Created:
7 years ago by Mathieu
Modified:
7 years ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

[Most Visited] Log suggestion provider to UMA Will add a query param to the /log.html endpoint in order to be able to log the suggestion provider to UMA. BUG=None TEST=MostVisitedIframeSourceTest NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241064

Patch Set 1 #

Patch Set 2 : Cleaning #

Total comments: 12

Patch Set 3 : Addressed comments #

Patch Set 4 : clean #

Total comments: 8

Patch Set 5 : Histogram changes #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : Addressed jered #

Patch Set 8 : Addressed jered (bis) #

Total comments: 4

Patch Set 9 : nits #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : re-rebase #

Patch Set 12 : rebase? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -7 lines) Patch
M chrome/browser/resources/local_ntp/most_visited_thumbnail.js View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_title.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_util.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source.cc View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source_unittest.cc View 1 2 3 4 3 chunks +40 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Mathieu
Hi, This is ready for review, would like to land before branch cut in a ...
7 years ago (2013-12-12 15:09:20 UTC) #1
beaudoin
Just a quick drive-by partial review. https://codereview.chromium.org/111423005/diff/20001/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/111423005/diff/20001/chrome/browser/resources/local_ntp/most_visited_util.js#newcode170 chrome/browser/resources/local_ntp/most_visited_util.js:170: data.provider = params.pr ...
7 years ago (2013-12-12 19:37:21 UTC) #2
beaudoin
https://codereview.chromium.org/111423005/diff/20001/chrome/browser/search/most_visited_iframe_source.h File chrome/browser/search/most_visited_iframe_source.h (right): https://codereview.chromium.org/111423005/diff/20001/chrome/browser/search/most_visited_iframe_source.h#newcode24 chrome/browser/search/most_visited_iframe_source.h:24: base::Histogram::kUmaTargetedHistogramFlag); \ Missing the includes for all the histogram ...
7 years ago (2013-12-12 19:39:51 UTC) #3
beaudoin
I swear it's the last time I ping this thread for the next 12 minutes. ...
7 years ago (2013-12-12 19:43:06 UTC) #4
Mathieu
Thanks, please have a look! https://codereview.chromium.org/111423005/diff/20001/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/111423005/diff/20001/chrome/browser/resources/local_ntp/most_visited_util.js#newcode170 chrome/browser/resources/local_ntp/most_visited_util.js:170: data.provider = params.pr || ...
7 years ago (2013-12-12 21:39:12 UTC) #5
beaudoin
LGTM
7 years ago (2013-12-12 21:53:14 UTC) #6
Alexei Svitkine (slow)
Comments below. Also, please change histograms.xml to add the suffixes you're going to use. You ...
7 years ago (2013-12-12 22:15:43 UTC) #7
Mathieu
Please have a look! https://codereview.chromium.org/111423005/diff/50001/chrome/browser/search/most_visited_iframe_source.cc File chrome/browser/search/most_visited_iframe_source.cc (right): https://codereview.chromium.org/111423005/diff/50001/chrome/browser/search/most_visited_iframe_source.cc#newcode28 chrome/browser/search/most_visited_iframe_source.cc:28: #define MV_CLICK_HISTOGRAM(position, provider) \ On ...
7 years ago (2013-12-13 15:01:38 UTC) #8
Alexei Svitkine (slow)
Could you re-upload? codereview gives me "error: old chunk mismatch" errors...
7 years ago (2013-12-13 15:03:30 UTC) #9
Mathieu
Sorry, have a look now.
7 years ago (2013-12-13 15:40:07 UTC) #10
Alexei Svitkine (slow)
thanks, lgtm
7 years ago (2013-12-13 15:47:41 UTC) #11
Jered
https://codereview.chromium.org/111423005/diff/90001/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/111423005/diff/90001/chrome/browser/resources/local_ntp/most_visited_util.js#newcode191 chrome/browser/resources/local_ntp/most_visited_util.js:191: !/^[a-z0-9]{0,8}$/i.test(data.provider)) /^[a-z0-9]{0,8}$/i.test(undefined) is false. Did you mean for the ...
7 years ago (2013-12-13 19:39:38 UTC) #12
Mathieu
Please have a look :) https://codereview.chromium.org/111423005/diff/90001/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/111423005/diff/90001/chrome/browser/resources/local_ntp/most_visited_util.js#newcode191 chrome/browser/resources/local_ntp/most_visited_util.js:191: !/^[a-z0-9]{0,8}$/i.test(data.provider)) On 2013/12/13 19:39:38, ...
7 years ago (2013-12-13 20:00:37 UTC) #13
Alexei Svitkine (slow)
still lgtm, some more nits https://codereview.chromium.org/111423005/diff/130001/chrome/browser/search/most_visited_iframe_source.cc File chrome/browser/search/most_visited_iframe_source.cc (right): https://codereview.chromium.org/111423005/diff/130001/chrome/browser/search/most_visited_iframe_source.cc#newcode101 chrome/browser/search/most_visited_iframe_source.cc:101: int position, const std::string& ...
7 years ago (2013-12-13 20:12:48 UTC) #14
Mathieu
Thanks. https://codereview.chromium.org/111423005/diff/130001/chrome/browser/search/most_visited_iframe_source.cc File chrome/browser/search/most_visited_iframe_source.cc (right): https://codereview.chromium.org/111423005/diff/130001/chrome/browser/search/most_visited_iframe_source.cc#newcode101 chrome/browser/search/most_visited_iframe_source.cc:101: int position, const std::string& provider) { On 2013/12/13 ...
7 years ago (2013-12-13 20:17:56 UTC) #15
Jered
lgtm with nit https://chromiumcodereview.appspot.com/111423005/diff/150001/chrome/browser/search/most_visited_iframe_source.cc File chrome/browser/search/most_visited_iframe_source.cc (right): https://chromiumcodereview.appspot.com/111423005/diff/150001/chrome/browser/search/most_visited_iframe_source.cc#newcode108 chrome/browser/search/most_visited_iframe_source.cc:108: MostVisitedIframeSource::kNumMostVisited + 1, Aren't there only ...
7 years ago (2013-12-13 21:37:58 UTC) #16
Mathieu
Thanks! https://chromiumcodereview.appspot.com/111423005/diff/150001/chrome/browser/search/most_visited_iframe_source.cc File chrome/browser/search/most_visited_iframe_source.cc (right): https://chromiumcodereview.appspot.com/111423005/diff/150001/chrome/browser/search/most_visited_iframe_source.cc#newcode108 chrome/browser/search/most_visited_iframe_source.cc:108: MostVisitedIframeSource::kNumMostVisited + 1, On 2013/12/13 21:37:59, Jered wrote: ...
7 years ago (2013-12-13 21:48:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/150001
7 years ago (2013-12-13 21:50:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/170001
7 years ago (2013-12-14 01:02:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/180001
7 years ago (2013-12-14 01:10:22 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202171
7 years ago (2013-12-14 02:41:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/180001
7 years ago (2013-12-14 05:34:03 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204052
7 years ago (2013-12-14 06:41:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/180001
7 years ago (2013-12-14 15:04:19 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204174
7 years ago (2013-12-14 16:08:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/180001
7 years ago (2013-12-14 16:56:40 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204203
7 years ago (2013-12-14 17:58:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/180001
7 years ago (2013-12-16 01:58:17 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204493
7 years ago (2013-12-16 02:59:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/240001
7 years ago (2013-12-16 13:56:12 UTC) #30
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=236627
7 years ago (2013-12-16 21:05:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/240001
7 years ago (2013-12-16 21:14:30 UTC) #32
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years ago (2013-12-16 23:21:57 UTC) #33
beaudoin1
Math: Checked it again for you. On Mon, Dec 16, 2013 at 6:21 PM, <commit-bot@chromium.org> ...
7 years ago (2013-12-16 23:26:51 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/111423005/240001
7 years ago (2013-12-16 23:34:47 UTC) #35
commit-bot: I haz the power
7 years ago (2013-12-16 23:42:28 UTC) #36
Message was sent while issue was closed.
Change committed as 241064

Powered by Google App Engine
This is Rietveld 408576698