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

Issue 12315019: Change ProxyRules to handle ProxyLists rather than just single ProxyServer instances. (Closed)

Created:
7 years, 10 months ago by marq_use_my_chromium_address
Modified:
7 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Matt Welsh, bengr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Change ProxyRules to handle ProxyLists rather than just single ProxyServer instances. - All of the ProxyRules members that used to just be ProxyServers are now ProxyLists. - ParseFromString will now accept multiple proxy specifications per scheme. - ProxyRules::Apply now sets the ProxyInfo result to use a PAC string if any proxying will be done. - ProxyList now has an AddProxyServer method. - In general, beacuse ProxyList checks for the validity of its contents before adding new entries, IsEmpty() is used as a validity test where is_valid() used to be. - Writing ProxyRules into a dictionary will write out each constituent ProxyList as a PAC string. - Slight functional change to proxy_info: Calling UsePacString() now invokes Reset(), in line with the other Use* methods. - Updated proxy_config_unittest to compare PAC strings of proxy rules components. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188604

Patch Set 1 #

Total comments: 28

Patch Set 2 : #

Total comments: 24

Patch Set 3 : #

Patch Set 4 : (Removed blank lines). #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : Fix for Android builds. #

Patch Set 10 : Fix for chromeos builds. #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -184 lines) Patch
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +29 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/proxy/proxy_api_helpers.cc View 1 2 3 4 5 6 7 1 chunk +18 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/proxy/proxy_api_helpers_unittest.cc View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/importer/firefox_proxy_settings.cc View 1 2 3 4 5 1 chunk +16 lines, -12 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_config.h View 1 2 3 4 5 6 4 chunks +51 lines, -15 lines 0 comments Download
M net/proxy/proxy_config.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +57 lines, -41 lines 0 comments Download
M net/proxy/proxy_config_service_android.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -11 lines 0 comments Download
M net/proxy/proxy_config_service_common_unittest.cc View 1 2 3 4 5 6 2 chunks +33 lines, -8 lines 0 comments Download
M net/proxy/proxy_config_service_ios.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 3 4 5 4 chunks +15 lines, -12 lines 0 comments Download
M net/proxy/proxy_config_service_mac.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M net/proxy/proxy_config_unittest.cc View 1 2 3 4 5 6 13 chunks +106 lines, -32 lines 0 comments Download
M net/proxy/proxy_info.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/proxy/proxy_info.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M net/proxy/proxy_list.h View 2 chunks +6 lines, -0 lines 0 comments Download
M net/proxy/proxy_list.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Ryan Sleevi
I'm assuming you meant to publish comments for our review? :)
7 years, 10 months ago (2013-02-22 01:31:42 UTC) #1
marq_use_my_chromium_address
7 years, 10 months ago (2013-02-22 01:41:56 UTC) #2
marq_use_my_chromium_address
On 2013/02/22 01:31:42, Ryan Sleevi wrote: > I'm assuming you meant to publish comments for ...
7 years, 10 months ago (2013-02-22 01:42:25 UTC) #3
eroman
Note: I probably won't review this until tomorrow (on my way out right now). Cheers.
7 years, 10 months ago (2013-02-22 01:57:26 UTC) #4
eroman
The overall approach is good, but I would like some details cleaned up before approving. ...
7 years, 10 months ago (2013-02-26 01:13:50 UTC) #5
marq_use_my_chromium_address
Thanks, PTAL. https://codereview.chromium.org/12315019/diff/1/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc (right): https://codereview.chromium.org/12315019/diff/1/net/proxy/proxy_config.cc#newcode17 net/proxy/proxy_config.cc:17: // If |proxy| is valid, sets it ...
7 years, 9 months ago (2013-02-27 23:08:19 UTC) #6
eroman
Thanks for making the larger changes; we are almost there! https://codereview.chromium.org/12315019/diff/7001/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc (right): https://codereview.chromium.org/12315019/diff/7001/net/proxy/proxy_config.cc#newcode19 ...
7 years, 9 months ago (2013-03-01 00:05:13 UTC) #7
marq_use_my_chromium_address
Thanks, PTAL. (There are a couple of extra blank lines I'm removing). https://codereview.chromium.org/12315019/diff/7001/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc ...
7 years, 9 months ago (2013-03-04 18:04:20 UTC) #8
eroman
LGTM https://codereview.chromium.org/12315019/diff/19001/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc (right): https://codereview.chromium.org/12315019/diff/19001/net/proxy/proxy_config.cc#newcode26 net/proxy/proxy_config.cc:26: void AddProxyURIListToProxyList(std::string uri_list, const std::string& (Technically StringPiece would ...
7 years, 9 months ago (2013-03-05 01:55:55 UTC) #9
marq_use_my_chromium_address
Thanks. What's the procedure for getting this submitted now? https://codereview.chromium.org/12315019/diff/19001/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc (right): https://codereview.chromium.org/12315019/diff/19001/net/proxy/proxy_config.cc#newcode26 net/proxy/proxy_config.cc:26: ...
7 years, 9 months ago (2013-03-05 22:52:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/21001
7 years, 9 months ago (2013-03-05 23:03:12 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-05 23:28:55 UTC) #12
marq_use_my_chromium_address
Updated proxy config services for the other platforms (doh!). Updated a couple of pieces of ...
7 years, 9 months ago (2013-03-06 23:01:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/42001
7 years, 9 months ago (2013-03-06 23:20:57 UTC) #14
commit-bot: I haz the power
Presubmit check for 12315019-42001 failed and returned exit status 1. INFO:root:Found 16 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-06 23:21:12 UTC) #15
eroman
Still LGTM (however you will need some additional owner approvals) https://codereview.chromium.org/12315019/diff/42001/net/proxy/proxy_config.h File net/proxy/proxy_config.h (right): https://codereview.chromium.org/12315019/diff/42001/net/proxy/proxy_config.h#newcode83 ...
7 years, 9 months ago (2013-03-06 23:26:32 UTC) #16
marq_use_my_chromium_address
+mirandac for importer/ +battre for extensions/api/proxy/ https://codereview.chromium.org/12315019/diff/42001/net/proxy/proxy_config.h File net/proxy/proxy_config.h (right): https://codereview.chromium.org/12315019/diff/42001/net/proxy/proxy_config.h#newcode83 net/proxy/proxy_config.h:83: // * If ...
7 years, 9 months ago (2013-03-07 00:34:29 UTC) #17
battre
https://codereview.chromium.org/12315019/diff/44009/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc File chrome/browser/extensions/api/proxy/proxy_api_helpers.cc (right): https://codereview.chromium.org/12315019/diff/44009/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc#newcode427 chrome/browser/extensions/api/proxy/proxy_api_helpers.cc:427: CHECK(proxies.size() == 1); I think this can cause trouble. ...
7 years, 9 months ago (2013-03-07 10:18:54 UTC) #18
Miranda Callahan
marq, I'm tossing this over to Ilya for the importer changes -- I need to ...
7 years, 9 months ago (2013-03-07 14:31:23 UTC) #19
marq_use_my_chromium_address
Changed the proxy api helper to not have the dangerous CHECK. Instead, if multiple proxy ...
7 years, 9 months ago (2013-03-07 20:26:15 UTC) #20
battre
LGTM @ extensions/api/proxy/
7 years, 9 months ago (2013-03-08 08:03:06 UTC) #21
Ilya Sherman
importer/ LGTM
7 years, 9 months ago (2013-03-08 20:52:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/54001
7 years, 9 months ago (2013-03-08 20:54:25 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-08 21:14:24 UTC) #24
marq_use_my_chromium_address
+mpcomplete, +jar for chrome/browser/chromeos/
7 years, 9 months ago (2013-03-08 22:48:19 UTC) #25
Matt Perry
I assume you added me for /extensions/* ? LGTM for that
7 years, 9 months ago (2013-03-08 23:59:36 UTC) #26
marq_use_my_chromium_address
On 2013/03/08 23:59:36, Matt Perry wrote: > I assume you added me for /extensions/* ? ...
7 years, 9 months ago (2013-03-09 00:17:24 UTC) #27
Matt Perry
On 2013/03/09 00:17:24, marq wrote: > On 2013/03/08 23:59:36, Matt Perry wrote: > > I ...
7 years, 9 months ago (2013-03-09 00:21:09 UTC) #28
marq_use_my_chromium_address
On 2013/03/09 00:21:09, Matt Perry wrote: > On 2013/03/09 00:17:24, marq wrote: > > On ...
7 years, 9 months ago (2013-03-09 00:24:30 UTC) #29
marq_use_my_chromium_address
+zelidrag@ for /chrome/browser/chromeos/
7 years, 9 months ago (2013-03-09 00:25:23 UTC) #30
marq_use_my_chromium_address
On 2013/03/09 00:25:23, marq wrote: > +zelidrag@ for /chrome/browser/chromeos/ Ping?? -zelidrag@ +satorux@, still for /chrome/browser/chromeos/
7 years, 9 months ago (2013-03-13 16:11:22 UTC) #31
marq_use_my_chromium_address
On 2013/03/13 16:11:22, marq wrote: > On 2013/03/09 00:25:23, marq wrote: > > +zelidrag@ for ...
7 years, 9 months ago (2013-03-13 23:22:53 UTC) #32
Ilya Sherman
Is there any reason not to just TBR the chromeos changes?
7 years, 9 months ago (2013-03-14 00:26:05 UTC) #33
satorux1
chrome/browser/chromeos LGTM, sorry for the belated response.
7 years, 9 months ago (2013-03-14 00:46:33 UTC) #34
marq_use_my_chromium_address
On 2013/03/14 00:46:33, satorux1 wrote: > chrome/browser/chromeos LGTM, sorry for the belated response. Thanks!
7 years, 9 months ago (2013-03-14 16:44:38 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/75001
7 years, 9 months ago (2013-03-14 16:47:03 UTC) #36
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-14 17:30:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/93004
7 years, 9 months ago (2013-03-14 17:39:06 UTC) #38
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=93094
7 years, 9 months ago (2013-03-14 20:27:00 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/103001
7 years, 9 months ago (2013-03-16 11:28:21 UTC) #40
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=20591
7 years, 9 months ago (2013-03-16 14:04:24 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@google.com/12315019/103001
7 years, 9 months ago (2013-03-16 17:05:59 UTC) #42
commit-bot: I haz the power
7 years, 9 months ago (2013-03-16 18:02:04 UTC) #43
Message was sent while issue was closed.
Change committed as 188604

Powered by Google App Engine
This is Rietveld 408576698