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

Issue 5958014: Policy: Add ProxyMode and deprecate ProxyServerMode. (Closed)

Created:
9 years, 12 months ago by danno
Modified:
9 years, 7 months ago
Reviewers:
gfeher, battre
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Policy: Add ProxyMode and deprecate ProxyServerMode. - Add support for 'deprecated' attribute in template generator - Add support for both int- and string- based enums in the template generator - Add logic to handle ProxyMode and fall back to ProxyServerMode BUG=68134 TEST=ConfigurationPolicyPrefStore*, new policy template generator tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71315

Patch Set 1 #

Patch Set 2 : small tweaks #

Total comments: 40

Patch Set 3 : review feedback #

Patch Set 4 : fix tests on all platforms #

Total comments: 11

Patch Set 5 : review feedback #

Total comments: 6

Patch Set 6 : review feedback #

Patch Set 7 : check final diff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+847 lines, -220 lines) Patch
M chrome/app/policy/policy_templates.grd View 1 2 3 4 5 6 3 chunks +41 lines, -1 line 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 12 chunks +58 lines, -38 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 4 chunks +132 lines, -74 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 3 chunks +60 lines, -15 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 3 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/prefs/proxy_prefs.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/prefs/proxy_prefs.cc View 1 1 chunk +15 lines, -5 lines 0 comments Download
M chrome/common/policy_constants.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/policy_constants.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M tools/grit/grit/format/policy_templates/policy_template_generator.py View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py View 1 2 3 4 5 2 chunks +34 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adm_writer.py View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py View 1 2 chunks +66 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adml_writer.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adml_writer_unittest.py View 1 chunk +50 lines, -2 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/admx_writer.py View 1 2 3 4 3 chunks +10 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/admx_writer_unittest.py View 1 2 3 chunks +43 lines, -6 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/doc_writer.py View 1 2 6 chunks +20 lines, -6 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/doc_writer_unittest.py View 4 chunks +41 lines, -6 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/json_writer.py View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py View 2 chunks +38 lines, -3 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_strings_writer_unittest.py View 3 chunks +51 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_writer.py View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_writer_unittest.py View 3 chunks +65 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/reg_writer.py View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py View 1 2 3 4 5 2 chunks +39 lines, -3 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/template_writer.py View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
danno
Please review. Given the open discussion about the "new" proxy mode, I'm not sure if ...
9 years, 12 months ago (2010-12-29 11:14:43 UTC) #1
gfeher
I think the template generator changes would be nicer in a separate CL. (They look ...
9 years, 11 months ago (2011-01-03 10:30:10 UTC) #2
battre
Some comments from my side. http://codereview.chromium.org/5958014/diff/10001/chrome/app/policy/policy_templates.grd File chrome/app/policy/policy_templates.grd (right): http://codereview.chromium.org/5958014/diff/10001/chrome/app/policy/policy_templates.grd#newcode301 chrome/app/policy/policy_templates.grd:301: Use a fixed proxy ...
9 years, 11 months ago (2011-01-03 13:19:16 UTC) #3
danno
please take a look again http://codereview.chromium.org/5958014/diff/10001/chrome/app/policy/policy_templates.grd File chrome/app/policy/policy_templates.grd (right): http://codereview.chromium.org/5958014/diff/10001/chrome/app/policy/policy_templates.grd#newcode301 chrome/app/policy/policy_templates.grd:301: Use a fixed proxy ...
9 years, 11 months ago (2011-01-07 12:24:25 UTC) #4
battre
two more nits http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc#newcode495 chrome/browser/policy/configuration_policy_pref_store.cc:495: bool server_mode = HasProxyPolicy(kPolicyProxyServerMode); actually, the ...
9 years, 11 months ago (2011-01-10 11:42:20 UTC) #5
gfeher
http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc#newcode605 chrome/browser/policy/configuration_policy_pref_store.cc:605: ProxyPrefs::StringToProxyMode(string_mode, &mode); A warning in case the supplied string ...
9 years, 11 months ago (2011-01-10 14:20:33 UTC) #6
danno
Addressed feedback, please have a (final?) look. http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/5958014/diff/36001/chrome/browser/policy/configuration_policy_pref_store.cc#newcode495 chrome/browser/policy/configuration_policy_pref_store.cc:495: bool server_mode ...
9 years, 11 months ago (2011-01-11 08:46:46 UTC) #7
gfeher
LGTM for the Python part. Some more comments for the C++ part. http://codereview.chromium.org/5958014/diff/49001/chrome/browser/policy/configuration_policy_pref_store.cc File chrome/browser/policy/configuration_policy_pref_store.cc ...
9 years, 11 months ago (2011-01-11 16:46:51 UTC) #8
danno
Make the changes you requested, there were a few non-trivial changes, so maybe you want ...
9 years, 11 months ago (2011-01-12 09:32:33 UTC) #9
gfeher
9 years, 11 months ago (2011-01-12 09:51:38 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698