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

Issue 845973005: [New Tab Page] Change the mechanism to intercept online NTP errors (Closed)

Created:
5 years, 11 months ago by Mathieu
Modified:
5 years, 10 months ago
CC:
chromium-reviews, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, Jered, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, melevin+watch_chromium.org, samarth+watch_chromium.org, skanuj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[New Tab Page] Change the mechanism to intercept online NTP errors No longer rely on DidFailProvisionalLoad, solving other issues. Includes a rename of URLRequestMockHTTPJob::AddUrlHandler BUG=373455 TEST=NewTabPageInterceptorTest Committed: https://crrev.com/6f2b16735659425f6a0167754051df62b0b4431b Cr-Commit-Position: refs/heads/master@{#314004}

Patch Set 1 : Initial #

Patch Set 2 : working #

Patch Set 3 : remove file #

Total comments: 37

Patch Set 4 : template url service observer #

Total comments: 7

Patch Set 5 : Addressed comments #

Patch Set 6 : test comment fix #

Total comments: 22

Patch Set 7 : moved impl to cc #

Total comments: 4

Patch Set 8 : nits #

Patch Set 9 : moved code #

Patch Set 10 : test fix #

Total comments: 2

Patch Set 11 : moved to profile_io_data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -147 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover_browsertest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/url_request_mock_util.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/search/search.h View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +122 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/new_tab_page_interceptor_service.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/new_tab_page_interceptor_service.cc View 1 2 3 4 5 6 7 1 chunk +123 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/new_tab_page_interceptor_service_factory.h View 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/new_tab_page_interceptor_service_factory.cc View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 4 chunks +3 lines, -46 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/page204.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/page204.html.mock-http-headers View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M components/cronet/android/test/mock_url_request_job_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/download/drag_download_file_browsertest.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/plugin_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/test/url_request/url_request_mock_http_job.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M net/test/url_request/url_request_mock_http_job.cc View 1 2 3 4 5 6 2 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 50 (10 generated)
Mathieu
Hello Matt and Kausalya, Please have an initial look!
5 years, 11 months ago (2015-01-15 20:29:18 UTC) #5
mmenke
Some nits. Want to do a full review tomorrow. https://codereview.chromium.org/845973005/diff/90001/chrome/browser/browsing_data/browsing_data_remover_browsertest.cc File chrome/browser/browsing_data/browsing_data_remover_browsertest.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/browsing_data/browsing_data_remover_browsertest.cc#newcode33 chrome/browser/browsing_data/browsing_data_remover_browsertest.cc:33: ...
5 years, 11 months ago (2015-01-15 22:35:31 UTC) #6
Mathieu
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 chrome/browser/search/instant_service.cc:432: } On 2015/01/15 22:35:30, mmenke wrote: > Can't the ...
5 years, 11 months ago (2015-01-15 22:42:09 UTC) #7
mmenke
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 chrome/browser/search/instant_service.cc:432: } On 2015/01/15 22:42:09, Mathieu Perreault wrote: > On ...
5 years, 11 months ago (2015-01-15 23:22:21 UTC) #8
Mathieu
On 2015/01/15 23:22:21, mmenke wrote: > https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc > File chrome/browser/search/instant_service.cc (right): > > https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 > ...
5 years, 11 months ago (2015-01-16 00:04:58 UTC) #9
kmadhusu
Thanks for picking up this CL. https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 chrome/browser/search/instant_service.cc:432: } On 2015/01/15 ...
5 years, 11 months ago (2015-01-16 00:13:12 UTC) #10
mmenke
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 chrome/browser/search/instant_service.cc:432: } On 2015/01/16 00:13:12, kmadhusu wrote: > On 2015/01/15 ...
5 years, 11 months ago (2015-01-16 17:54:04 UTC) #11
Mathieu
On 2015/01/16 17:54:04, mmenke wrote: > https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc > File chrome/browser/search/instant_service.cc (right): > > https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 > ...
5 years, 11 months ago (2015-01-16 18:04:27 UTC) #12
mmenke
On 2015/01/16 18:04:27, Mathieu Perreault wrote: > On 2015/01/16 17:54:04, mmenke wrote: > > > ...
5 years, 11 months ago (2015-01-16 18:13:44 UTC) #13
Mathieu
On 2015/01/16 18:13:44, mmenke wrote: > On 2015/01/16 18:04:27, Mathieu Perreault wrote: > > On ...
5 years, 11 months ago (2015-01-16 18:15:52 UTC) #14
kmadhusu
On 2015/01/16 18:04:27, Mathieu Perreault wrote: > On 2015/01/16 17:54:04, mmenke wrote: > > > ...
5 years, 11 months ago (2015-01-16 18:28:49 UTC) #15
mmenke
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/chrome_content_browser_client.cc#newcode989 chrome/browser/chrome_content_browser_client.cc:989: request_interceptors.push_back(service->CreateInterceptor().release()); Should we really make one of these for ...
5 years, 11 months ago (2015-01-16 22:04:16 UTC) #16
Mathieu
Have a look. https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc File chrome/browser/ui/search/new_tab_page_interceptor_service.cc (right): https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc#newcode28 chrome/browser/ui/search/new_tab_page_interceptor_service.cc:28: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); kmadhusu@: Do you think it's ...
5 years, 11 months ago (2015-01-21 21:29:39 UTC) #17
Mathieu
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/search/instant_service.cc#newcode432 chrome/browser/search/instant_service.cc:432: } On 2015/01/16 22:04:16, mmenke wrote: > On 2015/01/16 ...
5 years, 11 months ago (2015-01-21 21:30:02 UTC) #18
mmenke
https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor.h File chrome/browser/ui/search/new_tab_page_interceptor.h (right): https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor.h#newcode12 chrome/browser/ui/search/new_tab_page_interceptor.h:12: class NewTabPageInterceptor : public net::URLRequestInterceptor { Should have class ...
5 years, 11 months ago (2015-01-22 16:35:26 UTC) #19
Mathieu
Sorry, I had not ignored your comments on purpose :) Have another look! https://codereview.chromium.org/845973005/diff/90001/chrome/browser/browsing_data/browsing_data_remover_browsertest.cc File ...
5 years, 11 months ago (2015-01-22 19:21:59 UTC) #20
kmadhusu
https://codereview.chromium.org/845973005/diff/90001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/845973005/diff/90001/chrome/browser/chrome_content_browser_client.cc#newcode989 chrome/browser/chrome_content_browser_client.cc:989: request_interceptors.push_back(service->CreateInterceptor().release()); On 2015/01/22 19:21:58, Mathieu Perreault wrote: > On ...
5 years, 11 months ago (2015-01-22 20:06:31 UTC) #21
mmenke
LGTM, suggestions are mostly optional nits. Of the files modified, I'm an owner of net/, ...
5 years, 11 months ago (2015-01-22 20:53:51 UTC) #22
mmenke
And just to add, I reviewed everything but the changes to search_tab_helper. I didn't take ...
5 years, 11 months ago (2015-01-22 20:55:55 UTC) #23
Mathieu
Thanks Matt, Lingering question below. https://codereview.chromium.org/845973005/diff/150001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/845973005/diff/150001/chrome/browser/chrome_content_browser_client.cc#newcode982 chrome/browser/chrome_content_browser_client.cc:982: request_interceptors.push_back(service->CreateInterceptor().release()); On 2015/01/22 20:53:50, ...
5 years, 11 months ago (2015-01-22 21:44:22 UTC) #24
mmenke
Still looks good. https://codereview.chromium.org/845973005/diff/150001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/845973005/diff/150001/chrome/browser/chrome_content_browser_client.cc#newcode982 chrome/browser/chrome_content_browser_client.cc:982: request_interceptors.push_back(service->CreateInterceptor().release()); On 2015/01/22 21:44:22, Mathieu Perreault ...
5 years, 11 months ago (2015-01-22 21:52:29 UTC) #25
Mathieu
Will wait to see kmadhusu's opinion. https://codereview.chromium.org/845973005/diff/170001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc File chrome/browser/ui/search/new_tab_page_interceptor_service.cc (right): https://codereview.chromium.org/845973005/diff/170001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc#newcode22 chrome/browser/ui/search/new_tab_page_interceptor_service.cc:22: On 2015/01/22 21:52:29, ...
5 years, 11 months ago (2015-01-22 21:58:19 UTC) #26
kmadhusu
LGTM for search_tab_helper related changes. https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc File chrome/browser/ui/search/new_tab_page_interceptor_service.cc (right): https://codereview.chromium.org/845973005/diff/110001/chrome/browser/ui/search/new_tab_page_interceptor_service.cc#newcode28 chrome/browser/ui/search/new_tab_page_interceptor_service.cc:28: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2015/01/22 20:06:30, ...
5 years, 11 months ago (2015-01-23 00:59:32 UTC) #27
Mathieu
Jochen, Can you look at chrome/browser/chrome_content_browser_client ? Your approval would go towards the rename I ...
5 years, 11 months ago (2015-01-23 20:03:07 UTC) #29
mmenke
On 2015/01/23 20:03:07, Mathieu Perreault wrote: > Jochen, > > Can you look at chrome/browser/chrome_content_browser_client ...
5 years, 11 months ago (2015-01-23 20:07:36 UTC) #30
Mathieu
On 2015/01/23 20:07:36, mmenke wrote: > On 2015/01/23 20:03:07, Mathieu Perreault wrote: > > Jochen, ...
5 years, 11 months ago (2015-01-23 20:17:24 UTC) #31
mmenke
On 2015/01/23 20:17:24, Mathieu Perreault wrote: > On 2015/01/23 20:07:36, mmenke wrote: > > On ...
5 years, 11 months ago (2015-01-23 20:33:56 UTC) #32
mmenke
On 2015/01/23 20:33:56, mmenke wrote: > On 2015/01/23 20:17:24, Mathieu Perreault wrote: > > On ...
5 years, 11 months ago (2015-01-23 20:36:13 UTC) #33
jochen (gone - plz use gerrit)
chrome content browser client lgtm
5 years, 10 months ago (2015-01-26 15:44:50 UTC) #34
jochen (gone - plz use gerrit)
renames also lgtm
5 years, 10 months ago (2015-01-26 15:45:14 UTC) #35
Mathieu
On 2015/01/26 15:45:14, jochen (slow) wrote: > renames also lgtm Hi Matt, please have a ...
5 years, 10 months ago (2015-01-27 15:47:10 UTC) #36
Mathieu
On 2015/01/27 15:47:10, Mathieu Perreault wrote: > On 2015/01/26 15:45:14, jochen (slow) wrote: > > ...
5 years, 10 months ago (2015-01-27 19:31:57 UTC) #37
Mathieu
Hi Matt, have a look. Tests should be good now.
5 years, 10 months ago (2015-01-28 16:31:35 UTC) #38
mmenke
Sorry for not getting to this earlier - decided to take a couple days off ...
5 years, 10 months ago (2015-01-30 15:21:10 UTC) #41
Mathieu
https://codereview.chromium.org/845973005/diff/270001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/845973005/diff/270001/chrome/browser/profiles/profile_impl_io_data.cc#newcode593 chrome/browser/profiles/profile_impl_io_data.cc:593: } On 2015/01/30 15:21:10, mmenke wrote: > Think this ...
5 years, 10 months ago (2015-01-30 16:55:17 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845973005/290001
5 years, 10 months ago (2015-01-30 18:02:23 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/50437)
5 years, 10 months ago (2015-01-30 19:58:47 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845973005/290001
5 years, 10 months ago (2015-01-30 20:11:39 UTC) #48
commit-bot: I haz the power
Committed patchset #11 (id:290001)
5 years, 10 months ago (2015-01-30 22:07:55 UTC) #49
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 22:08:44 UTC) #50
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6f2b16735659425f6a0167754051df62b0b4431b
Cr-Commit-Position: refs/heads/master@{#314004}

Powered by Google App Engine
This is Rietveld 408576698