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

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed)

Created:
7 years, 1 month ago by dconnelly
Modified:
7 years, 1 month ago
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, plundblad+watch_chromium.org, marja+watch_chromium.org, aboxhall+watch_chromium.org, haitaol+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, benjhayden+dwatch_chromium.org, dbeam+watch-options_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, stevenjb+watch_chromium.org, tim+watch_chromium.org, davemoore+watch_chromium.org, Joao da Silva
Visibility:
Public.

Description

Move PolicyMap and its dependencies to components/policy/. This facilitates the refactoring of chrome/browser/policy into a layered component. BUG=271392 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236575

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove export from pure virtual interface #

Patch Set 3 : rebase #

Patch Set 4 : export nested struct #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -956 lines) Patch
M chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_store.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/login_profile_policy_provider.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/power_policy_browsertest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_dir_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_dir_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/policy_handlers.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/policy_handlers_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/disk_cache_dir_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/disk_cache_dir_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/proxy_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/async_policy_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/autofill_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/autofill_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_external_data_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_store.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_updater_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud/mock_cloud_external_data_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_store_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_loader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 1 chunk +2 lines, -1 line 1 comment Download
M chrome/browser/policy/configuration_policy_provider_test.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/policy/external_data_fetcher.h View 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/policy/external_data_fetcher.cc View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/policy/external_data_manager.h View 1 chunk +0 lines, -35 lines 0 comments Download
M chrome/browser/policy/file_selection_dialogs_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/file_selection_dialogs_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/forwarding_policy_provider_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/javascript_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/javascript_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 2 chunks +3 lines, -2 lines 1 comment Download
M chrome/browser/policy/policy_bundle.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_bundle_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_load_status.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_loader_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_loader_win.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_loader_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_loader_win_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/policy/policy_map.h View 1 chunk +0 lines, -124 lines 0 comments Download
D chrome/browser/policy/policy_map.cc View 1 chunk +0 lines, -186 lines 0 comments Download
D chrome/browser/policy/policy_map_unittest.cc View 1 chunk +0 lines, -289 lines 0 comments Download
M chrome/browser/policy/policy_prefs_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_service_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/policy_service_impl_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_service_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_statistics_collector_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_transformations.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_transformations_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/policy/policy_types.h View 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/browser/policy/schema_map.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/schema_map_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/test/policy_test_utils.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/url_blacklist_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/incognito_mode_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/default_search_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sessions/restore_on_startup_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_policy_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_policy_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 4 chunks +0 lines, -11 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 chunk +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy.gypi View 2 chunks +11 lines, -0 lines 0 comments Download
A + components/policy/core/common/external_data_fetcher.h View 2 3 chunks +5 lines, -4 lines 0 comments Download
A + components/policy/core/common/external_data_fetcher.cc View 1 chunk +2 lines, -2 lines 1 comment Download
A + components/policy/core/common/external_data_manager.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A + components/policy/core/common/policy_map.h View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
A + components/policy/core/common/policy_map.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/policy/core/common/policy_map_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + components/policy/core/common/policy_types.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dconnelly
joao for sanity check jochen for mass-renaming
7 years, 1 month ago (2013-11-20 16:19:31 UTC) #1
jochen (gone - plz use gerrit)
one general question. You're moving files from browser/ to common/ is this really intended? Are ...
7 years, 1 month ago (2013-11-21 13:55:24 UTC) #2
dconnelly
On 2013/11/21 13:55:24, jochen wrote: > one general question. > > You're moving files from ...
7 years, 1 month ago (2013-11-21 13:57:56 UTC) #3
dconnelly
https://codereview.chromium.org/78763002/diff/1/components/policy/core/common/external_data_manager.h File components/policy/core/common/external_data_manager.h (right): https://codereview.chromium.org/78763002/diff/1/components/policy/core/common/external_data_manager.h#newcode20 components/policy/core/common/external_data_manager.h:20: class POLICY_EXPORT ExternalDataManager { On 2013/11/21 13:55:25, jochen wrote: ...
7 years, 1 month ago (2013-11-21 14:04:22 UTC) #4
jochen (gone - plz use gerrit)
On 2013/11/21 13:57:56, dconnelly wrote: > On 2013/11/21 13:55:24, jochen wrote: > > one general ...
7 years, 1 month ago (2013-11-21 14:04:49 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 1 month ago (2013-11-21 14:04:54 UTC) #6
dconnelly
On 2013/11/21 14:04:54, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
7 years, 1 month ago (2013-11-21 14:05:47 UTC) #7
jochen (gone - plz use gerrit)
lgtm
7 years, 1 month ago (2013-11-21 14:12:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/78763002/70001
7 years, 1 month ago (2013-11-21 14:20:03 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/browser/policy/configuration_policy_pref_store_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-21 14:20:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/78763002/180001
7 years, 1 month ago (2013-11-21 14:31:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/78763002/270007
7 years, 1 month ago (2013-11-21 17:33:07 UTC) #12
commit-bot: I haz the power
Change committed as 236575
7 years, 1 month ago (2013-11-21 19:55:04 UTC) #13
Joao da Silva
7 years, 1 month ago (2013-11-22 17:38:47 UTC) #14
Message was sent while issue was closed.
Some cleanups for a later CL

https://codereview.chromium.org/78763002/diff/270007/chrome/browser/policy/co...
File chrome/browser/policy/configuration_policy_provider.cc (right):

https://codereview.chromium.org/78763002/diff/270007/chrome/browser/policy/co...
chrome/browser/policy/configuration_policy_provider.cc:9: #include
"components/policy/core/common/policy_map.h"
This isn't used in this file; maybe it was kept after rebasing on your change
that removed FixObsoletePolicies?

https://codereview.chromium.org/78763002/diff/270007/chrome/browser/policy/po...
File chrome/browser/policy/policy_browsertest.cc (right):

https://codereview.chromium.org/78763002/diff/270007/chrome/browser/policy/po...
chrome/browser/policy/policy_browsertest.cc:52: #include
"chrome/browser/policy/policy_service_impl.h"
This is not used

https://codereview.chromium.org/78763002/diff/270007/components/policy/core/c...
File components/policy/core/common/external_data_fetcher.cc (right):

https://codereview.chromium.org/78763002/diff/270007/components/policy/core/c...
components/policy/core/common/external_data_fetcher.cc:8: #include
"components/policy/core/common/external_data_manager.h"
Included twice?

Powered by Google App Engine
This is Rietveld 408576698