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

Issue 23851022: Added new policy Schema classes. (Closed)

Created:
7 years, 3 months ago by Joao da Silva
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Added new policy Schema classes. This implementation obsoletes PolicySchema and its existing users will be refactored. This implementation has the advantage of allowing compile-time static data to be generated and quickly loaded at runtime. That will allow building the Chrome policies schema without impact on startup. BUG=270667 TBR=joi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223326

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanups, unittests, better API #

Patch Set 3 : added OVERRIDE #

Patch Set 4 : added OVERRIDE #

Patch Set 5 : POLICY_EXPORT for Schema::Iterator #

Total comments: 34

Patch Set 6 : addressed comments #

Total comments: 2

Patch Set 7 : remove version check #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+813 lines, -0 lines) Patch
M components/components_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/policy.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download
A components/policy/core/common/schema.h View 1 2 3 4 5 1 chunk +150 lines, -0 lines 0 comments Download
A components/policy/core/common/schema.cc View 1 2 3 4 5 6 1 chunk +276 lines, -0 lines 0 comments Download
A components/policy/core/common/schema_internal.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A components/policy/core/common/schema_unittest.cc View 1 2 3 4 5 6 1 chunk +338 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Joao da Silva
This is now polished and ready for a review. The next steps are to refactor ...
7 years, 3 months ago (2013-09-12 17:59:20 UTC) #1
Mattias Nissler (ping if slow)
https://chromiumcodereview-hr.appspot.com/23851022/diff/1/components/policy/core/common/schema.h File components/policy/core/common/schema.h (right): https://chromiumcodereview-hr.appspot.com/23851022/diff/1/components/policy/core/common/schema.h#newcode25 components/policy/core/common/schema.h:25: const void* extra; Use a union here? https://chromiumcodereview-hr.appspot.com/23851022/diff/14001/components/policy/core/common/schema.cc File ...
7 years, 3 months ago (2013-09-13 12:56:48 UTC) #2
Joao da Silva
Thanks for the comments. Updates: - removed schema namespace - renamed PolicySchema to SchemaOwner, and ...
7 years, 3 months ago (2013-09-13 14:02:54 UTC) #3
Joao da Silva
+Jói for components_tests.gypi. @Jói: could we have more reviewers for this file? Every new unittest ...
7 years, 3 months ago (2013-09-13 14:21:55 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/23851022/diff/14001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/23851022/diff/14001/components/policy/core/common/schema.cc#newcode99 components/policy/core/common/schema.cc:99: // Validate the schema version. On 2013/09/13 14:02:54, Joao ...
7 years, 3 months ago (2013-09-13 14:55:16 UTC) #5
Joao da Silva
Mattias, Jói, PTAL https://codereview.chromium.org/23851022/diff/14001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/23851022/diff/14001/components/policy/core/common/schema.cc#newcode99 components/policy/core/common/schema.cc:99: // Validate the schema version. On ...
7 years, 3 months ago (2013-09-13 15:15:47 UTC) #6
Mattias Nissler (ping if slow)
LGTM
7 years, 3 months ago (2013-09-13 15:22:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/23851022/40001
7 years, 3 months ago (2013-09-16 07:36:21 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-16 07:40:51 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/23851022/40001
7 years, 3 months ago (2013-09-16 07:42:02 UTC) #10
commit-bot: I haz the power
Change committed as 223326
7 years, 3 months ago (2013-09-16 10:51:27 UTC) #11
Jói
7 years, 3 months ago (2013-09-16 11:06:39 UTC) #12
Message was sent while issue was closed.
LGTM, sorry for the delay.

Powered by Google App Engine
This is Rietveld 408576698