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

Issue 150033002: NTP: add histogram to track New Tab page URL status. (Closed)

Created:
6 years, 10 months ago by samarth
Modified:
6 years, 10 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, jar (doing other things), dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, asvitkine+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

NTP: add histogram to track New Tab page URL status. Log status of the New Tab page URL (e.g. valid URL from search provider, insecure url, etc.) whenever a New Tab is opened. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248573

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Total comments: 4

Patch Set 3 : Address comments. #

Patch Set 4 : Fix doc. #

Total comments: 4

Patch Set 5 : Address comments. #

Total comments: 2

Patch Set 6 : static helper #

Patch Set 7 : Clean things up. #

Total comments: 9

Patch Set 8 : Fix return value + nits. #

Patch Set 9 : Typo. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -37 lines) Patch
M chrome/browser/search/search.cc View 1 2 3 4 5 6 7 8 7 chunks +107 lines, -34 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
samarth
PTAL, thanks! Samarth
6 years, 10 months ago (2014-01-30 05:27:03 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/150033002/diff/1/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/1/chrome/browser/search/search.cc#newcode91 chrome/browser/search/search.cc:91: // provider's URL. Mention that this is used in ...
6 years, 10 months ago (2014-01-30 15:19:23 UTC) #2
samarth
https://codereview.chromium.org/150033002/diff/1/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/1/chrome/browser/search/search.cc#newcode91 chrome/browser/search/search.cc:91: // provider's URL. On 2014/01/30 15:19:24, Alexei Svitkine wrote: ...
6 years, 10 months ago (2014-01-30 16:45:28 UTC) #3
Jered
https://codereview.chromium.org/150033002/diff/70001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/70001/chrome/browser/search/search.cc#newcode477 chrome/browser/search/search.cc:477: return GURL(chrome::kChromeSearchLocalNtpUrl); How about adding another bucket, BAD_URL, to ...
6 years, 10 months ago (2014-01-30 17:13:12 UTC) #4
samarth
PTAL. Thanks, Samarth https://codereview.chromium.org/150033002/diff/70001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/70001/chrome/browser/search/search.cc#newcode477 chrome/browser/search/search.cc:477: return GURL(chrome::kChromeSearchLocalNtpUrl); On 2014/01/30 17:13:12, Jered ...
6 years, 10 months ago (2014-01-31 16:05:19 UTC) #5
Jered
https://codereview.chromium.org/150033002/diff/120001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/120001/chrome/browser/search/search.cc#newcode290 chrome/browser/search/search.cc:290: NewTabPageURLState GetNewTabPageURLState(Profile* profile, GURL* new_tab_url) { See comment below. ...
6 years, 10 months ago (2014-01-31 21:56:22 UTC) #6
samarth
https://codereview.chromium.org/150033002/diff/120001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/120001/chrome/browser/search/search.cc#newcode290 chrome/browser/search/search.cc:290: NewTabPageURLState GetNewTabPageURLState(Profile* profile, GURL* new_tab_url) { On 2014/01/31 21:56:23, ...
6 years, 10 months ago (2014-01-31 23:52:57 UTC) #7
Jered
lgtm https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc#newcode292 chrome/browser/search/search.cc:292: : url(url), state(state) {} nit: This could have ...
6 years, 10 months ago (2014-02-01 00:01:40 UTC) #8
samarth
https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc#newcode292 chrome/browser/search/search.cc:292: : url(url), state(state) {} On 2014/02/01 00:01:40, Jered wrote: ...
6 years, 10 months ago (2014-02-01 01:35:59 UTC) #9
Jered
On 2014/02/01 01:35:59, samarth wrote: > https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc > File chrome/browser/search/search.cc (right): > > https://codereview.chromium.org/150033002/diff/170001/chrome/browser/search/search.cc#newcode292 > ...
6 years, 10 months ago (2014-02-03 15:57:58 UTC) #10
Jered
https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search_unittest.cc File chrome/browser/search/search_unittest.cc (right): https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search_unittest.cc#newcode533 chrome/browser/search/search_unittest.cc:533: EXPECT_FALSE(HandleNewTabURLRewrite(&new_tab_url, AsBrowserContext( nit: Just profile() should work.
6 years, 10 months ago (2014-02-03 15:58:10 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc#newcode306 chrome/browser/search/search.cc:306: struct NewTabURLDetails { Could probably use a comment briefly ...
6 years, 10 months ago (2014-02-03 18:08:37 UTC) #12
jered1
https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc#newcode328 chrome/browser/search/search.cc:328: return NewTabURLDetails(local_url, NEW_TAB_URL_BAD); On 2014/02/03 18:08:38, Alexei Svitkine wrote: ...
6 years, 10 months ago (2014-02-03 18:18:10 UTC) #13
samarth
https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/150033002/diff/240001/chrome/browser/search/search.cc#newcode306 chrome/browser/search/search.cc:306: struct NewTabURLDetails { On 2014/02/03 18:08:38, Alexei Svitkine wrote: ...
6 years, 10 months ago (2014-02-03 18:33:30 UTC) #14
Alexei Svitkine (slow)
lgtm
6 years, 10 months ago (2014-02-03 18:48:12 UTC) #15
samarth
The CQ bit was checked by samarth@chromium.org
6 years, 10 months ago (2014-02-03 19:02:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/150033002/370001
6 years, 10 months ago (2014-02-03 19:03:53 UTC) #17
commit-bot: I haz the power
Change committed as 248573
6 years, 10 months ago (2014-02-03 21:01:17 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 21:01:18 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-03 21:01:22 UTC) #20
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698