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

Issue 5701003: Intorduce a separate preference for 'proxy server mode' (Closed)

Created:
10 years ago by gfeher
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, battre, jochen (gone - plz use gerrit), Matt Perry
Visibility:
Public.

Description

Intorduce a separate preference for 'proxy server mode' The new preference is kProxyServerMode, which supersedes kProxyAutoDetect and kNoProxyServer. The point of this change is to represent 'use system proxy settings' in a more robust way. The proxy extension API is also adjusted to the preference system. BUG=65732, 66023 TEST=ProxyPrefsTest.*, andalso covered by ExtensionApiTest.Porxy*,PrefProxyConfigServiceTest.*

Patch Set 1 : " #

Total comments: 22

Patch Set 2 : rebase #

Patch Set 3 : " #

Patch Set 4 : updates #

Total comments: 8

Patch Set 5 : address Dominic's comments, fix test, add TODO #

Total comments: 18

Patch Set 6 : updates #

Patch Set 7 : fix failures, add more tests to catch them earlier #

Total comments: 8

Patch Set 8 : updates #

Patch Set 9 : fix indentation nit #

Total comments: 53
Unified diffs Side-by-side diffs Delta from patch set Stats (+602 lines, -379 lines) Patch
M chrome/browser/extensions/extension_proxy_api.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_proxy_api.cc View 1 2 3 4 5 4 chunks +18 lines, -8 lines 6 comments Download
M chrome/browser/extensions/extension_proxy_apitest.cc View 1 2 3 4 5 chunks +37 lines, -7 lines 4 comments Download
M chrome/browser/net/pref_proxy_config_service.cc View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -92 lines 3 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -1 line 8 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 3 chunks +4 lines, -17 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 5 chunks +71 lines, -85 lines 6 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 2 chunks +134 lines, -91 lines 8 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 3 1 chunk +0 lines, -5 lines 2 comments Download
M chrome/browser/policy/managed_prefs_banner_base.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store.cc View 1 2 3 4 chunks +18 lines, -2 lines 6 comments Download
M chrome/browser/prefs/command_line_pref_store_unittest.cc View 1 2 3 5 chunks +35 lines, -10 lines 2 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 3 13 chunks +17 lines, -24 lines 0 comments Download
M chrome/browser/prefs/pref_set_observer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prefs/pref_value_store_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/prefs/proxy_prefs.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 2 comments Download
A chrome/browser/prefs/proxy_prefs.cc View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 4 comments Download
A chrome/browser/prefs/proxy_prefs_unittest.cc View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 2 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.proxy.html View 1 2 5 chunks +18 lines, -18 lines 0 comments Download
chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/proxy/auto/test.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/proxy/individual/test.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/proxy/single/test.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/manifest.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/test.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/test.js View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
gfeher
Please review. Note that I have disabled a test that will be easy to fix ...
10 years ago (2010-12-13 19:45:13 UTC) #1
battre (please use the other)
I think it would be nicer to expose the proxy modes as string constants rather ...
10 years ago (2010-12-14 09:45:43 UTC) #2
danno
Please also note that AutoDetect doesn't mask the bypass list AFAIK, so be careful with ...
10 years ago (2010-12-14 12:48:16 UTC) #3
danno
http://codereview.chromium.org/5701003/diff/8001/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/5701003/diff/8001/chrome/browser/policy/configuration_policy_pref_store.cc#newcode451 chrome/browser/policy/configuration_policy_pref_store.cc:451: On 2010/12/14 12:48:17, danno wrote: > Add scoped_ptr<Value> for ...
10 years ago (2010-12-14 12:54:48 UTC) #4
gfeher
Please take another look. http://codereview.chromium.org/5701003/diff/8001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/8001/chrome/browser/extensions/extension_proxy_api.cc#newcode57 chrome/browser/extensions/extension_proxy_api.cc:57: proxy_config->GetInteger("mode", &proxy_mode); On 2010/12/14 12:48:17, ...
10 years ago (2010-12-16 10:42:04 UTC) #5
battre (please use the other)
http://codereview.chromium.org/5701003/diff/62001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/62001/chrome/browser/extensions/extension_proxy_api.cc#newcode88 chrome/browser/extensions/extension_proxy_api.cc:88: mode_enum = ProxyPrefs::MANUAL; This should default to system (see ...
10 years ago (2010-12-16 12:52:16 UTC) #6
gfeher
I've addressed Dominic's comments. I've also found that extension_proxy_api is not doing a very good ...
10 years ago (2010-12-16 14:28:17 UTC) #7
battre (please use the other)
> http://codereview.chromium.org/5701003/diff/62001/chrome/browser/extensions/extension_proxy_api.cc#newcode88 > chrome/browser/extensions/extension_proxy_api.cc:88: mode_enum = > ProxyPrefs::MANUAL; > Done. But which comment do you ...
10 years ago (2010-12-16 14:31:19 UTC) #8
danno
Here's some comments, I'll go over more later. http://codereview.chromium.org/5701003/diff/71001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/71001/chrome/browser/extensions/extension_proxy_api.cc#newcode88 chrome/browser/extensions/extension_proxy_api.cc:88: mode_enum ...
10 years ago (2010-12-16 16:29:29 UTC) #9
gfeher
I've addressed/answered your comments. I've found some similar uses of enums in other places of ...
10 years ago (2010-12-16 23:54:28 UTC) #10
gfeher
I've fixed a bug that was caused by the wrong order of strings in proxy_prefs.cc:kProxyModeNames. ...
10 years ago (2010-12-17 10:41:43 UTC) #11
danno
Double check that command-line options actually really work as expected in chrome executable. http://codereview.chromium.org/5701003/diff/112001/chrome/browser/net/pref_proxy_config_service.cc File ...
10 years ago (2010-12-17 14:21:11 UTC) #12
gfeher
I've double-checked it with command-line and policy settings. http://codereview.chromium.org/5701003/diff/112001/chrome/browser/net/pref_proxy_config_service.cc File chrome/browser/net/pref_proxy_config_service.cc (right): http://codereview.chromium.org/5701003/diff/112001/chrome/browser/net/pref_proxy_config_service.cc#newcode91 chrome/browser/net/pref_proxy_config_service.cc:91: pref_service_->GetInteger(prefs::kProxyServerMode), ...
10 years ago (2010-12-17 15:44:16 UTC) #13
danno
LGTM if you fix the indenting discussed offline and get eromans LGTM.
10 years ago (2010-12-17 16:11:30 UTC) #14
gfeher
I'll be on vacation next week, but eroman, please do the review. battre is going ...
10 years ago (2010-12-17 16:28:32 UTC) #15
Pam (message me for reviews)
In the description, typo -> "Introduce" http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc#newcode89 chrome/browser/extensions/extension_proxy_api.cc:89: LOG(WARNING) << "Invalid ...
10 years ago (2010-12-18 08:29:54 UTC) #16
battre (please use the other)
This is continued in http://codereview.chromium.org/6004003/. http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc#newcode89 chrome/browser/extensions/extension_proxy_api.cc:89: LOG(WARNING) << "Invalid mode ...
10 years ago (2010-12-20 12:57:23 UTC) #17
Mattias Nissler (ping if slow)
a bunch of comments. http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc#newcode89 chrome/browser/extensions/extension_proxy_api.cc:89: LOG(WARNING) << "Invalid mode for ...
10 years ago (2010-12-20 13:34:02 UTC) #18
battre (please use the other)
I have addressed the issues in http://codereview.chromium.org/6004003/ http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/5701003/diff/142001/chrome/browser/extensions/extension_proxy_api.cc#newcode89 chrome/browser/extensions/extension_proxy_api.cc:89: LOG(WARNING) << ...
10 years ago (2010-12-21 14:18:17 UTC) #19
eroman
10 years ago (2010-12-21 20:50:58 UTC) #20
Apologies for no comments earlier; was on vacation

(Unfortunatley codereview doesn't have a mechanism for vacation auto-responder).

I'll send my comments to battre's continuation of this CL.

Powered by Google App Engine
This is Rietveld 408576698