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

Issue 1288383002: Use common code to set HttpNetworkSession::Param pointers. (Closed)

Created:
5 years, 4 months ago by wjmaclean
Modified:
5 years, 4 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, davidben
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use common code to set HttpNetworkSession::Param pointers. This CL is a refactor in which HttpNetworkSession "components", which are passed to the constructor as pointers stored in a struct HttpNetworkSession::Params, are initiatized directly from the context under construction. This has two benefits: 1) It ensures the network session associated with a context is consistent with the components for the context, and 2) it forces all session components to be initialized in a common code block. The second benefit is one step towards making sure can create isolated contexts where the session components are unique from other contexts. BUG=519373 Committed: https://crrev.com/ea309f76bd0f29ee2a5f2abfff449947df42225e Cr-Commit-Position: refs/heads/master@{#345429}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Move network session creation into ConstructSystemRequestContext(). #

Patch Set 3 : Apply same refactor for construction of ProxyScriptFetcherContext. #

Patch Set 4 : Remove check, http_cache_enabled_ || !channel_id_service. #

Total comments: 21

Patch Set 5 : Address comments. #

Patch Set 6 : Accidentally deleted code is restored. #

Total comments: 16

Patch Set 7 : Address suggestions. #

Patch Set 8 : Rebase to r345348. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -181 lines) Patch
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 24 chunks +139 lines, -154 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -11 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 4 chunks +17 lines, -16 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 43 (15 generated)
wjmaclean
mmenke@ - This is a (rough?) first draft of the re-factor I talked to you ...
5 years, 4 months ago (2015-08-13 14:16:21 UTC) #2
mmenke
https://codereview.chromium.org/1288383002/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1288383002/diff/1/chrome/browser/io_thread.cc#newcode1107 chrome/browser/io_thread.cc:1107: net::HttpNetworkSession::Params* params) { Not for this CL, but may ...
5 years, 4 months ago (2015-08-13 15:37:38 UTC) #3
mmenke
Oops...Lost my main comment - I think this looks like a pretty reasonable first step.
5 years, 4 months ago (2015-08-13 15:38:11 UTC) #4
wjmaclean
davidben@ - could you please comment on whether cert_policy_enforcer can be safely shared between HttpNetworkSessions? ...
5 years, 4 months ago (2015-08-14 09:20:50 UTC) #6
wjmaclean
I've moved the network session creation code into ConstructSystemRequestContext() as suggested. Do we want to ...
5 years, 4 months ago (2015-08-14 13:29:19 UTC) #7
mmenke
On 2015/08/14 13:29:19, wjmaclean wrote: > I've moved the network session creation code into > ...
5 years, 4 months ago (2015-08-14 14:55:08 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/40001
5 years, 4 months ago (2015-08-17 15:07:10 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/42704)
5 years, 4 months ago (2015-08-17 15:41:55 UTC) #12
wjmaclean
I think this CL is ready to graduate from [wip] to regular status: may we ...
5 years, 4 months ago (2015-08-17 18:36:11 UTC) #13
mmenke
Still want to do another careful pass over this - I'm paranoid about changing behavior ...
5 years, 4 months ago (2015-08-17 20:13:04 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/80001
5 years, 4 months ago (2015-08-18 14:16:39 UTC) #16
wjmaclean
mmenke@ - I've addressed your comments, ptal? https://codereview.chromium.org/1288383002/diff/60001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1288383002/diff/60001/chrome/browser/io_thread.cc#newcode1526 chrome/browser/io_thread.cc:1526: // now ...
5 years, 4 months ago (2015-08-18 14:17:23 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/122524)
5 years, 4 months ago (2015-08-18 14:44:37 UTC) #19
mmenke
This looks really good. https://codereview.chromium.org/1288383002/diff/60001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1288383002/diff/60001/chrome/browser/io_thread.cc#newcode1581 chrome/browser/io_thread.cc:1581: globals->http_server_properties->GetWeakPtr()); On 2015/08/18 14:17:22, wjmaclean ...
5 years, 4 months ago (2015-08-18 18:30:32 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/120001
5 years, 4 months ago (2015-08-18 18:55:30 UTC) #22
wjmaclean
I think I've addressed everything, ptal :-) https://codereview.chromium.org/1288383002/diff/100001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1288383002/diff/100001/chrome/browser/io_thread.cc#newcode1482 chrome/browser/io_thread.cc:1482: net::NetLog* net_log) ...
5 years, 4 months ago (2015-08-18 18:55:37 UTC) #23
mmenke
LGTM, though per earlier discussion, I think we should hold off on landing until after ...
5 years, 4 months ago (2015-08-18 19:00:05 UTC) #24
wjmaclean
On 2015/08/18 19:00:05, mmenke wrote: > LGTM, though per earlier discussion, I think we should ...
5 years, 4 months ago (2015-08-18 19:05:59 UTC) #25
davidben
(I have a giant email and code review hole to dig myself out of, so ...
5 years, 4 months ago (2015-08-18 19:53:18 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-18 20:41:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/120001
5 years, 4 months ago (2015-08-25 16:35:31 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/89266) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 4 months ago (2015-08-25 16:38:42 UTC) #33
wjmaclean
On 2015/08/25 16:38:42, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 4 months ago (2015-08-25 16:43:30 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/140001
5 years, 4 months ago (2015-08-25 17:31:04 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-25 19:41:05 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288383002/140001
5 years, 4 months ago (2015-08-25 20:51:18 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 4 months ago (2015-08-25 20:57:05 UTC) #42
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 20:57:37 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ea309f76bd0f29ee2a5f2abfff449947df42225e
Cr-Commit-Position: refs/heads/master@{#345429}

Powered by Google App Engine
This is Rietveld 408576698