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

Issue 24367003: Refactored users of PolicySchema to use the new policy::Schema class. (Closed)

Created:
7 years, 2 months ago by Joao da Silva
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Refactored users of PolicySchema to use the new policy::Schema class. PolicySchema was used to contain the JSON schema describing the valid values for each known policy. This is now done by the policy::Schema class, which supports loading the Chrome policy schema at startup without having to parse a JSON blob. BUG=270667 R=bartfab@chromium.org, dubroy@chromium.org, joi@chromium.org, kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225181

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -578 lines) Patch
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor.h View 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor.cc View 5 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor_unittest.cc View 1 3 chunks +71 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.cc View 3 chunks +11 lines, -17 lines 0 comments Download
M chrome/browser/policy/policy_service_impl_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/storage/storage_schema_manifest_handler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M components/components_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M components/policy.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
D components/policy/core/common/policy_schema.h View 1 chunk +0 lines, -70 lines 0 comments Download
D components/policy/core/common/policy_schema.cc View 1 chunk +0 lines, -244 lines 0 comments Download
D components/policy/core/common/policy_schema_unittest.cc View 1 chunk +0 lines, -193 lines 0 comments Download
M components/policy/core/common/schema.h View 1 chunk +7 lines, -0 lines 0 comments Download
M components/policy/core/common/schema.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Joao da Silva
Please have a look: @bartfab: the whole thing @kalman: extensions modifications (it's a mechanical refactoring) ...
7 years, 2 months ago (2013-09-23 15:46:50 UTC) #1
Jói
LGTM for components. Agreed we should have more owners for the components_tests.gypi file. On Mon, ...
7 years, 2 months ago (2013-09-23 15:58:43 UTC) #2
not at google - send to devlin
extensions lgtm.
7 years, 2 months ago (2013-09-23 16:00:45 UTC) #3
bartfab (slow)
lgtm with nits https://codereview.chromium.org/24367003/diff/1/chrome/browser/policy/policy_domain_descriptor_unittest.cc File chrome/browser/policy/policy_domain_descriptor_unittest.cc (right): https://codereview.chromium.org/24367003/diff/1/chrome/browser/policy/policy_domain_descriptor_unittest.cc#newcode16 chrome/browser/policy/policy_domain_descriptor_unittest.cc:16: #include "components/policy/core/common/schema.h" Nit: No need for ...
7 years, 2 months ago (2013-09-24 10:03:54 UTC) #4
Joao da Silva
Thanks for the reviews! +dubroy to review chrome/browser/ui/webui/ https://codereview.chromium.org/24367003/diff/1/chrome/browser/policy/policy_domain_descriptor_unittest.cc File chrome/browser/policy/policy_domain_descriptor_unittest.cc (right): https://codereview.chromium.org/24367003/diff/1/chrome/browser/policy/policy_domain_descriptor_unittest.cc#newcode16 chrome/browser/policy/policy_domain_descriptor_unittest.cc:16: #include ...
7 years, 2 months ago (2013-09-24 10:16:31 UTC) #5
Patrick Dubroy
On 2013/09/24 10:16:31, Joao da Silva wrote: > Thanks for the reviews! > > +dubroy ...
7 years, 2 months ago (2013-09-24 10:19:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/24367003/14001
7 years, 2 months ago (2013-09-24 10:54:05 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=79987
7 years, 2 months ago (2013-09-24 15:37:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/24367003/14001
7 years, 2 months ago (2013-09-24 16:09:33 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=80156
7 years, 2 months ago (2013-09-24 20:18:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/24367003/14001
7 years, 2 months ago (2013-09-25 07:20:58 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=171787
7 years, 2 months ago (2013-09-25 07:57:10 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/24367003/14001
7 years, 2 months ago (2013-09-25 08:07:45 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=171814
7 years, 2 months ago (2013-09-25 09:15:40 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/24367003/14001
7 years, 2 months ago (2013-09-25 11:43:39 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=171870
7 years, 2 months ago (2013-09-25 13:02:09 UTC) #16
Joao da Silva
7 years, 2 months ago (2013-09-25 13:19:15 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 manually as r225181 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698