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

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed)

Created:
8 years, 11 months ago by Joao da Silva
Modified:
8 years, 11 months ago
CC:
chromium-reviews, pam+watch_chromium.org, robertshield, arv (Not doing code reviews), kkania
Visibility:
Public.

Description

Removed ConfigurationPolicyType and extended PolicyMap. PolicyMap was strongly coupled to specific Chrome policies, through the ConfigurationPolicyType. That enum has been removed and replaced by strings. Also introduced new PolicyMap-related enums: PolicyScope and PolicyLevel. Started removing mandatory/recommended policy_maps around. Currently there are still mandatory/recommended providers, but that'll go away after this. TBR=jhawkins@chromium.org BUG=108993 TEST=All works as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118648

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixed builds, rebased #

Total comments: 47

Patch Set 3 : Addressed comments #

Total comments: 16

Patch Set 4 : Addressed comments, added a test #

Total comments: 6

Patch Set 5 : Moved FixDeprecatedPolicies test, always remove deprecated proxy policies #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1825 lines, -1480 lines) Patch
M chrome/app/policy/cloud_policy_codegen.gyp View 6 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 3 4 5 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_loader_unittest.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.h View 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.cc View 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider_unittest.cc View 4 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.h View 5 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.cc View 7 chunks +9 lines, -28 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_impl.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_unittest.cc View 1 2 9 chunks +62 lines, -65 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem_unittest.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_provider.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_provider.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler.h View 1 2 7 chunks +28 lines, -11 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 39 chunks +151 lines, -139 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_chromeos.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_chromeos.cc View 1 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_chromeos_unittest.cc View 1 4 chunks +23 lines, -14 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 5 3 chunks +265 lines, -176 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 43 chunks +301 lines, -278 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 3 4 4 chunks +34 lines, -17 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac.h View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac.cc View 1 chunk +12 lines, -5 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.h View 4 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 2 3 4 9 chunks +32 lines, -17 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader.h View 1 2 6 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader.cc View 11 chunks +30 lines, -46 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader_unittest.cc View 1 2 3 6 chunks +137 lines, -154 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 2 4 chunks +31 lines, -27 lines 0 comments Download
M chrome/browser/policy/device_policy_cache_unittest.cc View 1 2 10 chunks +17 lines, -31 lines 0 comments Download
M chrome/browser/policy/file_based_policy_provider.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/file_based_policy_provider.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/policy/file_based_policy_provider_unittest.cc View 1 2 5 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.cc View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_reader.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater_unittest.cc View 1 2 7 chunks +19 lines, -21 lines 0 comments Download
M chrome/browser/policy/policy_error_map.h View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/policy/policy_error_map.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/policy/policy_map.h View 1 2 3 2 chunks +87 lines, -15 lines 0 comments Download
M chrome/browser/policy/policy_map.cc View 1 2 4 chunks +92 lines, -21 lines 0 comments Download
M chrome/browser/policy/policy_map_unittest.cc View 1 2 3 chunks +131 lines, -17 lines 0 comments Download
M chrome/browser/policy/policy_status_info.h View 6 chunks +9 lines, -23 lines 0 comments Download
M chrome/browser/policy/policy_status_info.cc View 1 2 3 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.h View 1 2 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.cc View 1 5 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/policy/user_policy_cache_unittest.cc View 14 chunks +59 lines, -49 lines 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 1 2 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/resources/policy.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/policy.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 2 3 15 chunks +44 lines, -84 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Joao da Silva
DON'T PANIC It's not as bad as it seems :-) Most of the changes are ...
8 years, 11 months ago (2012-01-05 20:01:42 UTC) #1
Mattias Nissler (ping if slow)
I got about half way through, but my brain refuses to go any further, so ...
8 years, 11 months ago (2012-01-16 18:23:33 UTC) #2
Mattias Nissler (ping if slow)
I made it through! :) http://codereview.chromium.org/9111022/diff/10007/chrome/browser/policy/config_dir_policy_provider.cc File chrome/browser/policy/config_dir_policy_provider.cc (right): http://codereview.chromium.org/9111022/diff/10007/chrome/browser/policy/config_dir_policy_provider.cc#newcode90 chrome/browser/policy/config_dir_policy_provider.cc:90: POLICY_SCOPE_USER, should be POLICY_SCOPE_DEVICE ...
8 years, 11 months ago (2012-01-17 09:52:45 UTC) #3
Joao da Silva
Thanks for going through this monster :-) Please have a look at the changes. http://codereview.chromium.org/9111022/diff/1/chrome/browser/automation/testing_automation_provider.cc ...
8 years, 11 months ago (2012-01-17 13:09:29 UTC) #4
Mattias Nissler (ping if slow)
Made it through a second time! \o/ http://codereview.chromium.org/9111022/diff/10007/chrome/browser/policy/configuration_policy_provider_mac.cc File chrome/browser/policy/configuration_policy_provider_mac.cc (right): http://codereview.chromium.org/9111022/diff/10007/chrome/browser/policy/configuration_policy_provider_mac.cc#newcode141 chrome/browser/policy/configuration_policy_provider_mac.cc:141: POLICY_SCOPE_USER, On ...
8 years, 11 months ago (2012-01-18 15:07:07 UTC) #5
Joao da Silva
Thanks a lot! Only 8 files modified this time :-) http://codereview.chromium.org/9111022/diff/22001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/9111022/diff/22001/chrome/browser/automation/testing_automation_provider.cc#newcode6086 ...
8 years, 11 months ago (2012-01-18 16:49:29 UTC) #6
Mattias Nissler (ping if slow)
Getting close. http://codereview.chromium.org/9111022/diff/24002/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File chrome/browser/policy/configuration_policy_pref_store_unittest.cc (right): http://codereview.chromium.org/9111022/diff/24002/chrome/browser/policy/configuration_policy_pref_store_unittest.cc#newcode580 chrome/browser/policy/configuration_policy_pref_store_unittest.cc:580: new ConfigurationPolicyPrefStore(&provider)); Hm, this does a lot ...
8 years, 11 months ago (2012-01-19 12:58:36 UTC) #7
Joao da Silva
One more pass :-) http://codereview.chromium.org/9111022/diff/24002/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File chrome/browser/policy/configuration_policy_pref_store_unittest.cc (right): http://codereview.chromium.org/9111022/diff/24002/chrome/browser/policy/configuration_policy_pref_store_unittest.cc#newcode580 chrome/browser/policy/configuration_policy_pref_store_unittest.cc:580: new ConfigurationPolicyPrefStore(&provider)); On 2012/01/19 12:58:36, ...
8 years, 11 months ago (2012-01-19 16:21:40 UTC) #8
Mattias Nissler (ping if slow)
LGTM finally ;)
8 years, 11 months ago (2012-01-20 11:36:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9111022/13015
8 years, 11 months ago (2012-01-20 13:25:35 UTC) #10
commit-bot: I haz the power
Presubmit check for 9111022-13015 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-20 13:26:08 UTC) #11
Joao da Silva
@jhawkins: can you stamp this? A subsequent CL will cleanup about:policy a bit and I'll ...
8 years, 11 months ago (2012-01-20 13:29:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9111022/13015
8 years, 11 months ago (2012-01-20 13:30:16 UTC) #13
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 11 months ago (2012-01-20 16:56:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9111022/45001
8 years, 11 months ago (2012-01-22 11:48:09 UTC) #15
commit-bot: I haz the power
8 years, 11 months ago (2012-01-22 14:16:04 UTC) #16
Try job failure for 9111022-45001 (retry) on win_rel for step "base_unittests".
It's a second try, previously, step "base_unittests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698