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

Issue 58313002: Removed the PolicyDefinitionList. (Closed)

Created:
7 years, 1 month ago by Joao da Silva
Modified:
7 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, dconnelly
Base URL:
https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-10-use-registry
Visibility:
Public.

Description

Removed the PolicyDefinitionList. This list was generated at compile time and included policy information extracted from the policy templates file that was useful at runtime, such as the policy names, types, deprecation status, etc. Most of this information is now available via the Chrome policy schema, so this list was largely redundant. The chrome-specific data in this list is now available in a list of PolicyDetails, also generated at compile time and kept in sync with the Chrome schema data. Refactored all the remaining users of PolicyDefinitionList to use the schema and/or PolicyDetails now. Also introduced a test helper to mock out PolicyDetails in tests. Cleanup: moved policy_test_utils.h to policy/test/ BUG=270667 R=bartfab@chromium.org, dubroy@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234515

Patch Set 1 #

Total comments: 58

Patch Set 2 : addressed comments #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : rebased, fix compile issues, addressed comments #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -483 lines) Patch
M chrome/browser/chromeos/policy/cloud_external_data_manager_base.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc View 1 8 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc View 1 2 3 5 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_external_data_manager.h View 1 2 3 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_external_data_manager.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_external_data_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_external_data_manager.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_external_data_manager.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_loader_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.h View 2 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 10 chunks +20 lines, -35 lines 0 comments Download
M chrome/browser/policy/generate_policy_source_unittest.cc View 1 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.cc View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac_unittest.cc View 1 7 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/policy/policy_loader_win.h View 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/policy/policy_loader_win.cc View 1 2 3 5 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/policy/policy_loader_win_unittest.cc View 1 2 3 4 5 8 chunks +18 lines, -25 lines 0 comments Download
M chrome/browser/policy/policy_prefs_browsertest.cc View 1 2 3 8 chunks +107 lines, -20 lines 0 comments Download
M chrome/browser/policy/policy_statistics_collector.h View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/policy/policy_statistics_collector.cc View 1 3 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/policy/policy_statistics_collector_unittest.cc View 1 8 chunks +43 lines, -32 lines 0 comments Download
D chrome/browser/policy/policy_test_utils.h View 1 chunk +0 lines, -33 lines 0 comments Download
D chrome/browser/policy/policy_test_utils.cc View 1 chunk +0 lines, -118 lines 0 comments Download
A + chrome/browser/policy/test/policy_test_utils.h View 2 chunks +30 lines, -3 lines 0 comments Download
A + chrome/browser/policy/test/policy_test_utils.cc View 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui_browsertest.cc View 1 3 chunks +15 lines, -12 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 7 chunks +58 lines, -63 lines 0 comments Download
M components/policy.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A components/policy/core/common/policy_details.h View 1 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Joao da Silva
Congratulations Mario, you made it to the final CL! :-) This one is mostly a ...
7 years, 1 month ago (2013-11-04 19:32:03 UTC) #1
bartfab (slow)
https://codereview.chromium.org/58313002/diff/1/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc File chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc (right): https://codereview.chromium.org/58313002/diff/1/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc#newcode10 chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc:10: Nit: policy/policy_constants.h now implicitly pulls in "callback_forward.h", so all ...
7 years, 1 month ago (2013-11-05 18:18:33 UTC) #2
Joao da Silva
@Bartosz: PTAL @Patrick: please check webui/ https://codereview.chromium.org/58313002/diff/1/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc File chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc (right): https://codereview.chromium.org/58313002/diff/1/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc#newcode10 chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc:10: On 2013/11/05 18:18:33, ...
7 years, 1 month ago (2013-11-07 20:27:26 UTC) #3
Patrick Dubroy
lgtm
7 years, 1 month ago (2013-11-08 08:22:49 UTC) #4
bartfab (slow)
lgtm https://codereview.chromium.org/58313002/diff/630001/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc File chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc (right): https://codereview.chromium.org/58313002/diff/630001/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc#newcode13 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc:13: #include "base/logging.h" Nit: Where is this used? https://codereview.chromium.org/58313002/diff/630001/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc#newcode29 ...
7 years, 1 month ago (2013-11-08 12:40:37 UTC) #5
Joao da Silva
Thanks for the reviews! https://codereview.chromium.org/58313002/diff/630001/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc File chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc (right): https://codereview.chromium.org/58313002/diff/630001/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc#newcode13 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc:13: #include "base/logging.h" On 2013/11/08 12:40:37, ...
7 years, 1 month ago (2013-11-08 14:26:54 UTC) #6
Joao da Silva
7 years, 1 month ago (2013-11-12 14:52:28 UTC) #7
Message was sent while issue was closed.
Committed patchset #8 manually as r234515 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698