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

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)

Created:
3 years, 5 months ago by mmenke
Modified:
3 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, wjmaclean, net-reviews_chromium.org, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Hook up ProfileIOData's URLRequestContext to a NetworkService. This CL adds ProfileNetworkContextService, a BrowserContext KeyedService, that wraps ProfileIOData's URLRequestContext in a NetworkContext (Which ProfileIOData hooks up to IOThread's in-process NetworkService), and provides NetworkContext configuration parameters for it as well. When the network service is disabled, the new service provides direct access to the net NetworkContext. When the network service is enabled, the new service configures and provides acess to the StoragePartition's NetworkContext instance instead (Though it still sets up a NetworkContext for ProfileIOData's URLRequestContext as well). Bug=715695 Review-Url: https://codereview.chromium.org/2976323002 Cr-Commit-Position: refs/heads/master@{#488893} Committed: https://chromium.googlesource.com/chromium/src/+/0d1d09c3691ba940649051a8d172b356cc1ef7b1

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : More fixes #

Patch Set 4 : More....fixes..... #

Patch Set 5 : X11 is bonkers #

Total comments: 23

Patch Set 6 : Uninteresting merge #

Patch Set 7 : Response to comments #

Patch Set 8 : Add some docs to network_context.h #

Total comments: 16

Patch Set 9 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -154 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
A + chrome/browser/net/network_context_configuration_browsertest.cc View 4 chunks +65 lines, -13 lines 0 comments Download
A chrome/browser/net/profile_network_context_service.h View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/net/profile_network_context_service.cc View 1 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/net/profile_network_context_service_factory.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/net/profile_network_context_service_factory.cc View 1 chunk +40 lines, -0 lines 0 comments Download
D chrome/browser/net/system_network_context_manager_browsertest.cc View 1 chunk +0 lines, -91 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 4 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 11 chunks +37 lines, -26 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M content/browser/browsing_data/browsing_data_remover_impl_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
M content/browser/url_loader_factory_getter.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/web_ui_url_loader_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/network/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/network/network_context.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M content/network/url_loader_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/common/resource_request.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M content/public/common/resource_request.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 76 (58 generated)
mmenke
Hopefully this will be the last of my huge CLs for a while (Modulo ones ...
3 years, 5 months ago (2017-07-18 20:02:39 UTC) #39
mmenke
And if anyone's wondering why it's using rietveld, that's because it's based on top of ...
3 years, 5 months ago (2017-07-18 20:04:01 UTC) #40
Randy Smith (Not in Mondays)
Would you like both of us to review the whole thing, or are you expecting ...
3 years, 5 months ago (2017-07-18 20:13:57 UTC) #41
mmenke
On 2017/07/18 20:13:57, Randy Smith (Not in Mondays) wrote: > Would you like both of ...
3 years, 5 months ago (2017-07-18 20:16:26 UTC) #42
jam
nit: can you add comments to NetworkContext to explain how it's used in the scenarios ...
3 years, 5 months ago (2017-07-18 20:26:27 UTC) #43
mmenke
On 2017/07/18 20:26:27, jam wrote: > nit: can you add comments to NetworkContext to explain ...
3 years, 5 months ago (2017-07-18 20:57:34 UTC) #50
Randy Smith (Not in Mondays)
I'm afraid this is going to take a couple of rounds, mostly because there's a ...
3 years, 5 months ago (2017-07-19 19:31:11 UTC) #55
mmenke
Thanks for the feedback! On 2017/07/19 19:31:11, Randy Smith (Not in Mondays) wrote: > I'm ...
3 years, 5 months ago (2017-07-19 20:35:38 UTC) #58
jam
lgmt On 2017/07/18 20:57:34, mmenke wrote: > On 2017/07/18 20:26:27, jam wrote: > > nit: ...
3 years, 5 months ago (2017-07-19 20:42:54 UTC) #59
mmenke
On 2017/07/19 20:42:54, jam wrote: > lgmt I think this way a typo? :) > ...
3 years, 5 months ago (2017-07-19 21:02:25 UTC) #60
jam
On 2017/07/19 21:02:25, mmenke wrote: > On 2017/07/19 20:42:54, jam wrote: > > lgmt > ...
3 years, 5 months ago (2017-07-19 21:57:36 UTC) #61
mmenke
On 2017/07/19 21:57:36, jam wrote: > On 2017/07/19 21:02:25, mmenke wrote: > > On 2017/07/19 ...
3 years, 5 months ago (2017-07-19 21:59:00 UTC) #62
Randy Smith (Not in Mondays)
So I'm happy to leave everything below to your judgement, so LGTM conditional on my ...
3 years, 5 months ago (2017-07-20 17:38:34 UTC) #63
mmenke
Happy to spend more time hashing out comments, but unless I hear back from you, ...
3 years, 5 months ago (2017-07-20 18:31:31 UTC) #64
Randy Smith (Not in Mondays)
Still LGTM. Thanks!
3 years, 5 months ago (2017-07-20 18:33:11 UTC) #67
mmenke
On 2017/07/20 18:33:11, Randy Smith (Not in Mondays) wrote: > Still LGTM. Thanks! Landing now ...
3 years, 5 months ago (2017-07-23 18:11:43 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2976323002/250001
3 years, 5 months ago (2017-07-23 18:11:54 UTC) #73
commit-bot: I haz the power
3 years, 5 months ago (2017-07-23 20:19:30 UTC) #76
Message was sent while issue was closed.
Committed patchset #9 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/0d1d09c3691ba940649051a8d172...

Powered by Google App Engine
This is Rietveld 408576698