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

Issue 2914893002: Move some of IOThread's command line logic to network_session_configurator. (Closed)

Created:
3 years, 6 months ago by mmenke
Modified:
3 years, 6 months ago
CC:
chromium-reviews, Randy Smith (Not in Mondays)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move some of IOThread's command line logic to network_session_configurator. This will allow it to be shared with the network service, and makes it easy to pass all relevant arguments to the network service as well. May add handling for command line arguments that affect more than just the HttpNetworkSession::Params there as well in a future CL, to enable further code sharing. TBR=lcwu@chromium.org,rkc@chromium.org BUG=727812 Review-Url: https://codereview.chromium.org/2914893002 Cr-Commit-Position: refs/heads/master@{#478740} Committed: https://chromium.googlesource.com/chromium/src/+/68a502104896fc2bb14fc3903afe31d275e2ffda

Patch Set 1 #

Patch Set 2 : A couple fixes #

Patch Set 3 : More fixes.... #

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

Patch Set 5 : Fix DEPS? #

Patch Set 6 : Fix deps? #

Patch Set 7 : Another deps fix #

Patch Set 8 : Fix iOS #

Patch Set 9 : Fixes... #

Total comments: 10

Patch Set 10 : Tests #

Patch Set 11 : Fix tests, add defaults to test, move kIgnoreFetcherCertErrors back to IOThread. #

Patch Set 12 : Meh #

Total comments: 2

Patch Set 13 : Remove TODO #

Patch Set 14 : Fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -953 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -83 lines 0 comments Download
M chrome/browser/payments/site_per_process_payments_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/policy_network_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +0 lines, -25 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/service_process.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
D components/network_session_configurator/BUILD.gn View 1 chunk +0 lines, -34 lines 0 comments Download
D components/network_session_configurator/DEPS View 1 chunk +0 lines, -7 lines 0 comments Download
A + components/network_session_configurator/browser/BUILD.gn View 3 chunks +3 lines, -4 lines 0 comments Download
A components/network_session_configurator/browser/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
A components/network_session_configurator/browser/network_session_configurator.h View 1 chunk +34 lines, -0 lines 0 comments Download
A + components/network_session_configurator/browser/network_session_configurator.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +93 lines, -18 lines 0 comments Download
A + components/network_session_configurator/browser/network_session_configurator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +142 lines, -9 lines 0 comments Download
A components/network_session_configurator/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
A components/network_session_configurator/common/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A components/network_session_configurator/common/network_switch_list.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +39 lines, -0 lines 0 comments Download
A components/network_session_configurator/common/network_switches.h View 1 chunk +29 lines, -0 lines 0 comments Download
A components/network_session_configurator/common/network_switches.cc View 1 chunk +31 lines, -0 lines 0 comments Download
D components/network_session_configurator/network_session_configurator.h View 1 chunk +0 lines, -30 lines 0 comments Download
D components/network_session_configurator/network_session_configurator.cc View 1 chunk +0 lines, -356 lines 0 comments Download
D components/network_session_configurator/network_session_configurator_unittest.cc View 1 chunk +0 lines, -357 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browsing_data/clear_site_data_throttle_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M content/network/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/network/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/network/network_context.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -3 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -7 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/test/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ios/components/io_thread/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ios/components/io_thread/ios_io_thread.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 99 (80 generated)
mmenke
[rdsmith]: FYI [rch]: PTAL. The main changes are in components/network_session_configurator/ (Which is why I'm sending ...
3 years, 6 months ago (2017-06-02 20:23:48 UTC) #42
Ryan Hamilton
Looks good! Thanks for doing this. I think we need some tests of the new ...
3 years, 6 months ago (2017-06-02 20:49:04 UTC) #45
mmenke
[rch]: Thanks for the speedy review! PTAL. https://codereview.chromium.org/2914893002/diff/170001/components/network_session_configurator/browser/network_session_configurator.h File components/network_session_configurator/browser/network_session_configurator.h (right): https://codereview.chromium.org/2914893002/diff/170001/components/network_session_configurator/browser/network_session_configurator.h#newcode6 components/network_session_configurator/browser/network_session_configurator.h:6: #define COMPONENTS_NETWORK_SESSION_CONFIGURATOR_BROWSER_NETWORK_SESSION_CONFIGURATOR_H_ ...
3 years, 6 months ago (2017-06-05 18:43:27 UTC) #69
mmenke
[rch]: Ping!
3 years, 6 months ago (2017-06-07 15:35:07 UTC) #72
Ryan Hamilton
Sorry for the delay. I somehow completely missed the mail with your replies. LGTM https://codereview.chromium.org/2914893002/diff/170001/components/network_session_configurator/common/BUILD.gn ...
3 years, 6 months ago (2017-06-07 18:15:44 UTC) #73
mmenke
[+jam]: Please review content/ (content/browser/utility_process_host_impl.cc). Is it reasonable to split a component like this just ...
3 years, 6 months ago (2017-06-07 18:25:24 UTC) #75
mmenke
On 2017/06/07 18:25:24, mmenke wrote: > [+jam]: Please review content/ (content/browser/utility_process_host_impl.cc). > Is it reasonable ...
3 years, 6 months ago (2017-06-07 19:06:21 UTC) #76
jam
lgtm
3 years, 6 months ago (2017-06-08 18:23:28 UTC) #77
mmenke
[+jochen]: Please review chrome/ and components/BUILD.gn. I'm just moving a number of network-related command line ...
3 years, 6 months ago (2017-06-08 18:35:59 UTC) #80
jochen (gone - plz use gerrit)
components/BUILD.gn and chrome/ lgtm
3 years, 6 months ago (2017-06-08 22:05:56 UTC) #82
rohitrao (ping after 24h)
ios/ lgtm
3 years, 6 months ago (2017-06-09 17:45:40 UTC) #83
mmenke
Thanks! I consider the rest of this TBRable (All it is is updating DEPS/BUILD.gns/includes for ...
3 years, 6 months ago (2017-06-09 17:51:59 UTC) #84
Tobias Sargeant
android_webview LGTM https://codereview.chromium.org/2914893002/diff/290001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/2914893002/diff/290001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode89 android_webview/browser/net/aw_url_request_context_getter.cc:89: // TODO(mmenke): Should this use network_session_configurator? I ...
3 years, 6 months ago (2017-06-09 17:55:36 UTC) #85
mmenke
I'll remove the TODO, but just wanted to point this out. https://codereview.chromium.org/2914893002/diff/290001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): ...
3 years, 6 months ago (2017-06-09 18:02:35 UTC) #86
mmenke
[lcwu,rkc]: TBRing both of you.
3 years, 6 months ago (2017-06-12 16:06:19 UTC) #88
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/2914893002/310001
3 years, 6 months ago (2017-06-12 16:07:00 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/229887) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-12 16:10:19 UTC) #93
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/2914893002/330001
3 years, 6 months ago (2017-06-12 18:24:03 UTC) #96
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 20:20:51 UTC) #99
Message was sent while issue was closed.
Committed patchset #14 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/68a502104896fc2bb14fc3903afe...

Powered by Google App Engine
This is Rietveld 408576698