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

Issue 15133005: Added a PolicySchema class. (Closed)

Created:
7 years, 7 months ago by Joao da Silva
Modified:
7 years, 7 months ago
CC:
chromium-reviews, not at google - send to devlin
Visibility:
Public.

Description

Added a PolicySchema class. A PolicySchema describes the known policy keys (for Chrome, or for an extension) and maps them to their expected base::Value::Type. This class parses a buffer as a JSON schema and additionally verifies that it can be used to describe a policy map (e.g. the schema version is defined, the top-level is an "object", and other checks). BUG=108992 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201707

Patch Set 1 #

Total comments: 10

Patch Set 2 : PolicySchema describes inner types #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 15

Patch Set 5 : fixed nits #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -0 lines) Patch
A chrome/browser/policy/policy_schema.h View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_schema.cc View 1 2 3 4 1 chunk +244 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_schema_unittest.cc View 1 2 3 1 chunk +193 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Joao da Silva
This depends on https://codereview.chromium.org/14830007. @mnissler: please review @kalman: FYI
7 years, 7 months ago (2013-05-14 16:43:29 UTC) #1
Mattias Nissler (ping if slow)
I love the fact that these changes come in handy pieces for review! Good job ...
7 years, 7 months ago (2013-05-15 10:04:12 UTC) #2
Joao da Silva
@bartfab: passing this on to you; please have a look. Thanks! https://codereview.chromium.org/15133005/diff/1/chrome/browser/policy/policy_schema.cc File chrome/browser/policy/policy_schema.cc (right): ...
7 years, 7 months ago (2013-05-19 13:17:08 UTC) #3
bartfab (slow)
lgtm https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc File chrome/browser/policy/policy_schema.cc (right): https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc#newcode7 chrome/browser/policy/policy_schema.cc:7: #include "base/json/json_reader.h" What is this used for? https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc#newcode27 ...
7 years, 7 months ago (2013-05-21 11:02:39 UTC) #4
Joao da Silva
Thanks for the review! https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc File chrome/browser/policy/policy_schema.cc (right): https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc#newcode7 chrome/browser/policy/policy_schema.cc:7: #include "base/json/json_reader.h" On 2013/05/21 11:02:40, ...
7 years, 7 months ago (2013-05-21 17:16:25 UTC) #5
bartfab (slow)
still lgtm https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc File chrome/browser/policy/policy_schema.cc (right): https://codereview.chromium.org/15133005/diff/20005/chrome/browser/policy/policy_schema.cc#newcode198 chrome/browser/policy/policy_schema.cc:198: PolicySchemaMap::const_iterator it = properties->find(key); On 2013/05/21 17:16:25, ...
7 years, 7 months ago (2013-05-21 18:09:56 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/15133005/63001
7 years, 7 months ago (2013-05-22 11:54:02 UTC) #7
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=42580
7 years, 7 months ago (2013-05-22 13:45:55 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/15133005/63001
7 years, 7 months ago (2013-05-22 13:50:14 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 05:25:54 UTC) #10
Message was sent while issue was closed.
Change committed as 201707

Powered by Google App Engine
This is Rietveld 408576698