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

Issue 1892123003: Add components/network_session_configurator. (Closed)

Created:
4 years, 8 months ago by Bence
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, droger+watchlist_chromium.org, extensions-reviews_chromium.org, gcasto+watchlist_chromium.org, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mkwst+watchlist-passwords_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, sdefresne+watchlist_chromium.org, sdefresne+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add components/network_session_configurator. Factor out IOThread::NetworkSessionConfigurator to components/network_session_configurator. Remove duplicate code from IOSChromeIOThread, use components/network_session_configurator instead. Move all command line switches required by components/network_session_configurator to this component. Note that currently command line switches are ignored. To preserve this behavior, this CL calls network_session_configurator::ParseFieldTrials() from IOSChromeIOThread, which also ignores command line switches. Background: IOThread was forked to IOSChromeIOThread as part of an effort to remove the dependency of //ios on //chrome. However, field trial and command line parsing logic is shared. This CL refactors said logic from IOThread and from IOSChromeIOThread to //components and removes code duplication. BUG=586616 Committed: https://crrev.com/210d6f3dc4f72563db1ba760dd1a2e53fd3822ef Cr-Commit-Position: refs/heads/master@{#395540}

Patch Set 1 #

Patch Set 2 : Fix build rules, DEPSs, includes. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix build rules even more. #

Patch Set 5 : Add IOSChromeIOThread::params_. #

Patch Set 6 : Rebase. #

Patch Set 7 : Add gn dependency. #

Patch Set 8 : Modify test to expect NPN to be disabled by default. #

Patch Set 9 : Update android_webview dependencies. #

Patch Set 10 : Fix iOS mishaps. #

Patch Set 11 : More iOS tweaks; chromecast include and build rules. #

Patch Set 12 : Fix member type mismatch on iOS. #

Patch Set 13 : Rebase. #

Patch Set 14 : Add OWNERS; remove unused variables and function. #

Patch Set 15 : Add dependencies for iOS. #

Total comments: 4

Patch Set 16 : Rebase. #

Total comments: 4

Patch Set 17 : Re: #22. #

Total comments: 2

Patch Set 18 : Drop clang-format off. #

Patch Set 19 : Rebase. #

Patch Set 20 : Rebase on https://crrev.com/1945513002. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+950 lines, -2420 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 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 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +0 lines, -205 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +12 lines, -664 lines 0 comments Download
M chrome/browser/io_thread_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -594 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/policy_network_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 14 15 16 17 18 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 14 15 16 17 18 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 11 12 13 14 15 16 17 18 6 chunks +0 lines, -12 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +0 lines, -43 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/service_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/chromecast.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -0 lines 0 comments Download
A components/network_session_configurator.gypi View 1 1 chunk +40 lines, -0 lines 0 comments Download
A components/network_session_configurator/BUILD.gn View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A + components/network_session_configurator/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
A components/network_session_configurator/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A components/network_session_configurator/network_session_configurator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +33 lines, -0 lines 0 comments Download
A components/network_session_configurator/network_session_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +619 lines, -0 lines 0 comments Download
A + components/network_session_configurator/network_session_configurator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +38 lines, -249 lines 0 comments Download
A components/network_session_configurator/switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download
A components/network_session_configurator/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +58 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/content_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 14 15 16 17 18 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 14 15 16 17 18 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 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M ios/chrome/browser/ios_chrome_io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +4 lines, -160 lines 0 comments Download
M ios/chrome/browser/ios_chrome_io_thread.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +25 lines, -481 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (14 generated)
Bence
Ryan: PTAL at chrome/browser/io_thread*, ios/chrome/browser/ios_chrome_io_thread*, and the new component. Also, would you be willing to ...
4 years, 8 months ago (2016-04-21 11:33:33 UTC) #4
Bence
pfeldman: PTAL at content/ sdefresne: PTAL at components/ and ios/ torne: PTAL at android_webview/ alokp: ...
4 years, 8 months ago (2016-04-21 13:00:13 UTC) #6
Bence
Marijn: PTAL at extensions/shell/browser felt: PTAL chrome/browser/ssl/ pastarmovj: PTAL at chrome/browser/policy/ vabr: PTAL at chrome/browser/password_manager/ ...
4 years, 8 months ago (2016-04-21 13:05:13 UTC) #8
Bence
gene: PTAL at chrome/service/ Thank you all.
4 years, 8 months ago (2016-04-21 13:07:31 UTC) #10
Torne
android_webview LGTM
4 years, 8 months ago (2016-04-21 13:19:24 UTC) #11
pastarmovj
chrome/browser/policy LGTM
4 years, 8 months ago (2016-04-21 13:31:01 UTC) #12
felt
chrome/browser/ssl/ssl_browser_tests.cc lgtm
4 years, 8 months ago (2016-04-21 14:03:16 UTC) #13
alokp
chromecast/ lgtm
4 years, 8 months ago (2016-04-21 16:46:54 UTC) #14
Marijn Kruisselbrink
extensions/shell/browser LGTM
4 years, 8 months ago (2016-04-21 16:49:28 UTC) #15
Peter Kasting
c/b/ui LGTM
4 years, 8 months ago (2016-04-21 21:05:21 UTC) #16
Ryan Hamilton
Nice. LGTM, though I wonder if there is a shorter name. Happy to be an ...
4 years, 8 months ago (2016-04-21 21:15:25 UTC) #17
Bence
Ryan: Thank you. I agree, I would love to have a shorter name. Any suggestions? ...
4 years, 8 months ago (2016-04-22 11:11:28 UTC) #18
Ryan Hamilton
On 2016/04/22 11:11:28, Bence wrote: > Ryan: Thank you. I agree, I would love to ...
4 years, 8 months ago (2016-04-22 17:59:05 UTC) #19
Bence
Gentle ping. pfeldman: PTAL at content/ sdefresne: PTAL at components/ and ios/ vabr: PTAL at ...
4 years, 7 months ago (2016-04-28 18:57:19 UTC) #20
pfeldman
content/ lgtm
4 years, 7 months ago (2016-04-29 02:16:00 UTC) #21
sdefresne
lgtm BTW, I do not really understand this in your description: "Note that when called ...
4 years, 7 months ago (2016-04-29 18:43:45 UTC) #22
Bence
vabr: PTAL at chrome/browser/password_manager/ gene: PTAL at chrome/service/ pfeldman, sdefresne: Thank you. I changed the ...
4 years, 7 months ago (2016-05-02 20:26:47 UTC) #24
vabr (Chromium)
chrome/browser/password_manager/password_manager_browsertest.cc LGTM. Sorry for the late answer, I'm not sure how did I miss this. ...
4 years, 7 months ago (2016-05-03 08:08:47 UTC) #25
Bence
Nico: PTAL at chrome/browser/BUILD.gn, chrome/common/BUILD.gn, and chrome/common/DEPS. Thank you. Scott: PTAL at chrome/service. Thank you. ...
4 years, 7 months ago (2016-05-03 20:28:29 UTC) #27
Bence
On 2016/05/03 20:28:29, Bence OOO until May 23 wrote: > Nico: PTAL at chrome/browser/BUILD.gn, chrome/common/BUILD.gn, ...
4 years, 7 months ago (2016-05-11 19:48:47 UTC) #28
Bence
sky: PTAL at chrome/browser/BUILD.gn, chrome/common/BUILD.gn, and chrome/common/DEPS. (Nico is on vacation.) Ping Scott and gene. ...
4 years, 7 months ago (2016-05-19 17:28:19 UTC) #30
sky
Said files LGTM
4 years, 7 months ago (2016-05-19 19:13:36 UTC) #31
Ryan Hamilton
I suspect io_thread.cc (et. al.) have evolved a bit since this CL started. How do ...
4 years, 7 months ago (2016-05-19 20:52:13 UTC) #32
Bence
On 2016/05/19 20:52:13, Ryan Hamilton wrote: > I suspect io_thread.cc (et. al.) have evolved a ...
4 years, 7 months ago (2016-05-19 23:57:57 UTC) #33
Scott Byer
LGTM for service. On 2016/05/11 at 19:48:47, bnc wrote: > On 2016/05/03 20:28:29, Bence OOO ...
4 years, 7 months ago (2016-05-23 16:39:59 UTC) #34
Nico
chrome/ lgtm, but: https://codereview.chromium.org/1892123003/diff/320001/components/network_session_configurator/switches.cc File components/network_session_configurator/switches.cc (right): https://codereview.chromium.org/1892123003/diff/320001/components/network_session_configurator/switches.cc#newcode9 components/network_session_configurator/switches.cc:9: // clang-format off why? drop this
4 years, 7 months ago (2016-05-23 16:56:58 UTC) #35
Vitaly Buka (NO REVIEWS)
lgtm
4 years, 7 months ago (2016-05-23 20:09:18 UTC) #37
Bence
Thank you all. https://codereview.chromium.org/1892123003/diff/320001/components/network_session_configurator/switches.cc File components/network_session_configurator/switches.cc (right): https://codereview.chromium.org/1892123003/diff/320001/components/network_session_configurator/switches.cc#newcode9 components/network_session_configurator/switches.cc:9: // clang-format off On 2016/05/23 16:56:58, ...
4 years, 7 months ago (2016-05-23 23:25:39 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892123003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892123003/380001
4 years, 7 months ago (2016-05-24 06:38:40 UTC) #41
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 7 months ago (2016-05-24 07:41:04 UTC) #43
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/210d6f3dc4f72563db1ba760dd1a2e53fd3822ef Cr-Commit-Position: refs/heads/master@{#395540}
4 years, 7 months ago (2016-05-24 07:42:35 UTC) #45
jam
4 years, 5 months ago (2016-06-28 16:48:54 UTC) #46
Message was sent while issue was closed.
I just saw this.

This indirectly adds a dependency from content/ to

components/data_reduction_proxy
components/variations
components/version_info

which content explicitly didn't want to depend on before. Please undo the
dependency from content/ to network_session_configurator/

Powered by Google App Engine
This is Rietveld 408576698