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

Issue 6004003: Introduce a separate preference for 'proxy server mode' (Closed)

Created:
10 years ago by battre
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, gfeher
Visibility:
Public.

Description

Introduce 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. This is a continuation of gfeher's patch from issue 5701003. BUG=65732, 66023 TEST=ProxyPrefsTest.*, and also covered by ExtensionApiTest.Porxy*, PrefProxyConfigServiceTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70042

Patch Set 1 #

Patch Set 2 : Addressed Pam's comments from issue 5701003 #

Patch Set 3 : ls #

Patch Set 4 : Addressed Mattias' comments #

Patch Set 5 : Extracted parts of the CL into 6000005 #

Patch Set 6 : Extraction undone - as per Mattias' request #

Total comments: 50

Patch Set 7 : Addressed comments #

Total comments: 6

Patch Set 8 : Addressed Eric's comments #

Total comments: 8

Patch Set 9 : Addressed Mattias' comments #

Total comments: 3

Patch Set 10 : Addressed comments, fixed one unit test #

Total comments: 2

Patch Set 11 : Fixed indentation #

Patch Set 12 : One more thing... #

Total comments: 11

Patch Set 13 : Addressed Eric's comments #

Patch Set 14 : nit - alphabetize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+819 lines, -458 lines) Patch
M chrome/browser/extensions/extension_proxy_api.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.cc View 1 2 3 4 5 6 7 9 10 11 12 6 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_apitest.cc View 1 2 3 4 5 6 7 9 10 11 12 5 chunks +106 lines, -11 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +57 lines, -92 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -20 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +145 lines, -111 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +89 lines, -101 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/policy/managed_prefs_banner_base.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store.cc View 1 2 3 4 5 6 7 9 10 11 12 4 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store_unittest.cc View 1 2 3 4 5 6 7 9 10 11 12 5 chunks +24 lines, -12 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +21 lines, -28 lines 0 comments Download
M chrome/browser/prefs/pref_set_observer.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prefs/pref_value_store_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/prefs/proxy_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/prefs/proxy_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/prefs/proxy_prefs_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +52 lines, -0 lines 0 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 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -2 lines 0 comments Download
chrome/common/extensions/docs/examples/extensions/imageinfo.zip View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/experimental.proxy.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +18 lines, -18 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/policy_constants.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/policy_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M 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, -5 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/direct/manifest.json View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/direct/test.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/direct/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/proxy/individual/test.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/pac/manifest.json View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/pac/test.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/pac/test.js View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/proxy/single/test.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/test.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/proxy/system/test.js View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
battre
This is a continuation of http://codereview.chromium.org/5701003/. I have taken over as Gabor is on vacation. ...
10 years ago (2010-12-20 12:55:59 UTC) #1
battre
Changes for http://codereview.chromium.org/5701003/
10 years ago (2010-12-21 14:21:01 UTC) #2
Mattias Nissler (ping if slow)
A couple of comments. http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode450 chrome/browser/policy/configuration_policy_pref_store.cc:450: // correct and apply them ...
10 years ago (2010-12-21 15:54:28 UTC) #3
danno
http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode453 chrome/browser/policy/configuration_policy_pref_store.cc:453: case kPolicyProxyMode: Indenting is not right here: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Loops_and_Switch_Statements http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode486 ...
10 years ago (2010-12-21 16:16:38 UTC) #4
Mattias Nissler (ping if slow)
http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode486 chrome/browser/policy/configuration_policy_pref_store.cc:486: void ConfigurationPolicyPrefStore::Completed() { My rationale for opposing the idea ...
10 years ago (2010-12-21 16:22:41 UTC) #5
battre (please use the other)
Addressed the comments. Thank you. http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode450 chrome/browser/policy/configuration_policy_pref_store.cc:450: // correct and apply ...
10 years ago (2010-12-21 20:14:09 UTC) #6
eroman
I did high level review, will defer to the other reviewers on the preferences/policy details ...
10 years ago (2010-12-21 22:55:20 UTC) #7
battre
I have addressed Eric's comments. Thanks! I have created two cleanup bugs because they are ...
10 years ago (2010-12-22 10:01:27 UTC) #8
Mattias Nissler (ping if slow)
Some more comments. Sorry they are sprinkled over the last three revisions you uploaded, but ...
10 years ago (2010-12-22 10:22:11 UTC) #9
battre
Thank you for the comments. I have addressed them in the new CL. http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File ...
10 years ago (2010-12-22 14:41:16 UTC) #10
Mattias Nissler (ping if slow)
getting closer. http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode450 chrome/browser/policy/configuration_policy_pref_store.cc:450: // correct and apply them in that ...
10 years ago (2010-12-22 15:26:14 UTC) #11
battre
Thanks. http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/5002/chrome/browser/policy/configuration_policy_pref_store.cc#newcode450 chrome/browser/policy/configuration_policy_pref_store.cc:450: // correct and apply them in that case. ...
10 years ago (2010-12-22 16:15:12 UTC) #12
Mattias Nissler (ping if slow)
One little nit left. LGTM on my side pending the fix and trybot happyness. http://codereview.chromium.org/6004003/diff/58002/chrome/browser/net/pref_proxy_config_service.cc ...
10 years ago (2010-12-22 16:23:38 UTC) #13
battre
Done, thanks. http://codereview.chromium.org/6004003/diff/64004/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/6004003/diff/64004/chrome/browser/policy/configuration_policy_pref_store.cc#newcode569 chrome/browser/policy/configuration_policy_pref_store.cc:569: case kPolicyNoProxyServerMode: On 2010/12/22 16:23:39, Mattias Nissler ...
10 years ago (2010-12-22 16:32:02 UTC) #14
eroman
LGTM http://codereview.chromium.org/6004003/diff/102001/chrome/browser/net/pref_proxy_config_service_unittest.cc File chrome/browser/net/pref_proxy_config_service_unittest.cc (right): http://codereview.chromium.org/6004003/diff/102001/chrome/browser/net/pref_proxy_config_service_unittest.cc#newcode194 chrome/browser/net/pref_proxy_config_service_unittest.cc:194: // The above switches the mode the default ...
10 years ago (2010-12-23 01:06:14 UTC) #15
battre
Thanks a lot for the reviews. http://codereview.chromium.org/6004003/diff/102001/chrome/browser/net/pref_proxy_config_service_unittest.cc File chrome/browser/net/pref_proxy_config_service_unittest.cc (right): http://codereview.chromium.org/6004003/diff/102001/chrome/browser/net/pref_proxy_config_service_unittest.cc#newcode194 chrome/browser/net/pref_proxy_config_service_unittest.cc:194: // The above ...
10 years ago (2010-12-23 09:41:42 UTC) #16
danno
10 years ago (2010-12-23 09:46:48 UTC) #17
lgtm with one nit

http://codereview.chromium.org/6004003/diff/102001/chrome/browser/prefs/pref_...
File chrome/browser/prefs/pref_service_unittest.cc (right):

http://codereview.chromium.org/6004003/diff/102001/chrome/browser/prefs/pref_...
chrome/browser/prefs/pref_service_unittest.cc:14: #include
"chrome/browser/prefs/proxy_prefs.h"
nit: alphabetize

Powered by Google App Engine
This is Rietveld 408576698