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

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed)

Created:
7 years, 1 month ago by Joao da Silva
Modified:
7 years, 1 month ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, oshima+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org, dconnelly
Base URL:
https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Visibility:
Public.

Description

Policy providers all get a SchemaRegistry to work with. The SchemaRegistry contains the components that the policy provider should load policy for, as well as the expected policies and their types for each component. Also killed the PolicyDomainDescriptor, which was a similar way of doing this but had the problem of overlapping descriptors on shared policy providers. BUG=270667 R=bartfab@chromium.org, jochen@chromium.org, kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234514

Patch Set 1 #

Patch Set 2 : Fixed mac tests #

Total comments: 118

Patch Set 3 : rebased on new ResourceCache::FilterSubkeys function #

Patch Set 4 : addressed comments #

Patch Set 5 : rebase #

Patch Set 6 : fixed win tests #

Total comments: 6

Patch Set 7 : nits #

Patch Set 8 : rebase #

Total comments: 8

Patch Set 9 : rebased, addressed comments #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+774 lines, -937 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/login_profile_policy_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/login_profile_policy_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/proxy_policy_provider.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proxy_policy_provider.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 1 2 3 4 5 6 7 8 6 chunks +77 lines, -31 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_apitest.cc View 1 2 3 4 5 6 chunks +77 lines, -16 lines 0 comments Download
M chrome/browser/policy/async_policy_loader.h View 1 2 3 6 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/policy/async_policy_loader.cc View 1 2 3 5 chunks +17 lines, -18 lines 0 comments Download
M chrome/browser/policy/async_policy_provider.h View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/policy/async_policy_provider.cc View 4 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/policy/async_policy_provider_unittest.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 6 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc View 1 2 3 5 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service.h View 1 2 3 6 chunks +16 lines, -21 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service.cc View 1 2 3 4 15 chunks +112 lines, -108 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc View 8 chunks +29 lines, -26 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store.h View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store.cc View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store_unittest.cc View 1 2 3 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_manager_unittest.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_loader_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 2 3 4 5 6 5 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 3 5 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 2 3 7 chunks +124 lines, -6 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 2 3 2 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/policy/mock_policy_service.h View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
D chrome/browser/policy/policy_domain_descriptor.h View 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/policy/policy_domain_descriptor.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/browser/policy/policy_domain_descriptor_unittest.cc View 1 chunk +0 lines, -218 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.h View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.cc View 1 2 3 4 5 6 4 chunks +16 lines, -29 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac_unittest.cc View 1 6 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/policy/policy_loader_win_unittest.cc View 1 2 3 4 5 6 7 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_prefs_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_service.h View 1 2 3 2 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/policy/policy_service_impl.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/policy/policy_service_impl.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/policy/policy_service_impl_unittest.cc View 1 2 3 2 chunks +0 lines, -61 lines 0 comments Download
M chrome/browser/policy/policy_service_stub.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/policy/policy_service_stub.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector.cc View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector_factory.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/schema_registry.h View 1 2 3 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/policy/schema_registry.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/policy/schema_registry_unittest.cc View 1 2 3 11 chunks +18 lines, -19 lines 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/settings/managed_storage/manifest.json View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/settings/managed_storage/schema.json View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Joao da Silva
Please review. This fixes the problem and ties up all the other changes, and removes ...
7 years, 1 month ago (2013-11-04 14:52:16 UTC) #1
Joao da Silva
+cc Daniel
7 years, 1 month ago (2013-11-04 19:32:59 UTC) #2
bartfab (slow)
https://codereview.chromium.org/56623005/diff/140002/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/56623005/diff/140002/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode142 chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:142: SchemaRegistry schema_registry_; Nit: #include "chrome/browser/policy/schema_registry.h" https://codereview.chromium.org/56623005/diff/140002/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc File chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc (right): ...
7 years, 1 month ago (2013-11-05 15:53:04 UTC) #3
Joao da Silva
@Bartfab: PTAL @Jochen: this removes a line of dead code in some tests all over ...
7 years, 1 month ago (2013-11-07 13:14:59 UTC) #4
jochen (gone - plz use gerrit)
what part do you want me to review?
7 years, 1 month ago (2013-11-07 13:40:14 UTC) #5
Joao da Silva
@Jochen: anything non-policy and non-extensions: chrome/browser/chromeos/system chrome/browser/prefs chrome/browser/ui (except policy_ui.cc) On Thu, Nov 7, 2013 ...
7 years, 1 month ago (2013-11-07 13:43:14 UTC) #6
jochen (gone - plz use gerrit)
*browsertest.cc where you just delete stuff lgtm
7 years, 1 month ago (2013-11-08 11:49:57 UTC) #7
bartfab (slow)
lgtm https://codereview.chromium.org/56623005/diff/850001/chrome/browser/policy/configuration_policy_provider.h File chrome/browser/policy/configuration_policy_provider.h (right): https://codereview.chromium.org/56623005/diff/850001/chrome/browser/policy/configuration_policy_provider.h#newcode72 chrome/browser/policy/configuration_policy_provider.h:72: // This base implementation just calls RefreshPolicies. Nit: ...
7 years, 1 month ago (2013-11-08 13:50:16 UTC) #8
Joao da Silva
@Benjamin: friendly ping. Note that I'm about to slash a lot of the ManagedValueStoreCache code ...
7 years, 1 month ago (2013-11-08 14:18:46 UTC) #9
not at google - send to devlin
Sorry for taking so long. basically just nits + that OTR question which would be ...
7 years, 1 month ago (2013-11-09 23:52:42 UTC) #10
Joao da Silva
Thanks for the reviews! https://codereview.chromium.org/56623005/diff/1410001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/56623005/diff/1410001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode109 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:109: if (!ExtensionSystem::Get(profile_)->ready().is_signaled()) On 2013/11/09 23:52:43, ...
7 years, 1 month ago (2013-11-11 08:46:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/56623005/1510001
7 years, 1 month ago (2013-11-11 08:46:44 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/56623005/1510001
7 years, 1 month ago (2013-11-11 18:12:27 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-11 19:49:55 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/56623005/1710001
7 years, 1 month ago (2013-11-11 22:47:24 UTC) #15
Joao da Silva
7 years, 1 month ago (2013-11-12 14:50:25 UTC) #16
Message was sent while issue was closed.
Committed patchset #12 manually as r234514 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698