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

Issue 205923004: Add regex support in policy schema (Closed)

Created:
6 years, 9 months ago by binjin
Modified:
6 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@json-schema-regex
Visibility:
Public.

Description

Add regular expression support in policy schema. This CL add "pattern" restriction to string type in schema, and "patternProperties" add variable properties name in an object type. Both of these features are based on regular expression and third_party/re2 is used in this implementation. BUG=348551 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262364

Patch Set 1 #

Total comments: 36

Patch Set 2 : fixes #

Patch Set 3 : Validate() against multiple properties #

Total comments: 39

Patch Set 4 : more fixes #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -95 lines) Patch
M components/policy/core/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/schema.h View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M components/policy/core/common/schema.cc View 1 2 3 19 chunks +209 lines, -42 lines 0 comments Download
M components/policy/core/common/schema_internal.h View 1 2 chunks +15 lines, -0 lines 0 comments Download
M components/policy/core/common/schema_unittest.cc View 1 2 3 4 11 chunks +166 lines, -46 lines 0 comments Download
M components/policy/policy_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/tools/generate_policy_source.py View 1 2 3 6 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
binjin
Hello Joao, PTAL at this CL, thanks. -bjin
6 years, 9 months ago (2014-03-20 14:36:57 UTC) #1
Joao da Silva
First round of comments. I realize that this code is quite tricky, especially the generation ...
6 years, 9 months ago (2014-03-21 12:58:12 UTC) #2
binjin
Hello Joao, Patchset 2 fixed most of the bugs(including the two you pointed out). For ...
6 years, 9 months ago (2014-03-27 17:57:47 UTC) #3
binjin
Hello Joao, Could you please take a look at newest patchset? -bjin https://codereview.chromium.org/205923004/diff/1/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc ...
6 years, 8 months ago (2014-04-01 12:29:35 UTC) #4
Joao da Silva
The logic looks all right from my side. This is ready to go after a ...
6 years, 8 months ago (2014-04-02 09:51:10 UTC) #5
binjin
https://codereview.chromium.org/205923004/diff/40001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/205923004/diff/40001/components/policy/core/common/schema.cc#newcode11 components/policy/core/common/schema.cc:11: #include <vector> On 2014/04/02 09:51:11, Joao da Silva wrote: ...
6 years, 8 months ago (2014-04-03 10:13:36 UTC) #6
Joao da Silva
Nice work here, thanks for handling all the comments. LGTM! https://codereview.chromium.org/205923004/diff/60001/components/policy/core/common/schema_unittest.cc File components/policy/core/common/schema_unittest.cc (right): https://codereview.chromium.org/205923004/diff/60001/components/policy/core/common/schema_unittest.cc#newcode18 ...
6 years, 8 months ago (2014-04-03 12:10:55 UTC) #7
binjin
@brettw: Could you please have a look at the changes to components/policy/core/DEPS ? Thanks. -bjin
6 years, 8 months ago (2014-04-03 12:57:44 UTC) #8
binjin
@darin @cpu: Could any of you also take a quick look at components/policy/core/DEPS ? I'm ...
6 years, 8 months ago (2014-04-07 09:44:25 UTC) #9
cpu_(ooo_6.6-7.5)
I don't see a problem with the dependency itself, lots of code depends on RE. ...
6 years, 8 months ago (2014-04-07 18:10:29 UTC) #10
binjin
On 2014/04/07 18:10:29, cpu wrote: > I don't see a problem with the dependency itself, ...
6 years, 8 months ago (2014-04-07 19:23:40 UTC) #11
brettw
DEPS lgtm
6 years, 8 months ago (2014-04-07 20:43:57 UTC) #12
cpu_(ooo_6.6-7.5)
ok. lgtm.
6 years, 8 months ago (2014-04-07 22:19:13 UTC) #13
binjin
The CQ bit was checked by binjin@chromium.org
6 years, 8 months ago (2014-04-08 06:59:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/205923004/80001
6 years, 8 months ago (2014-04-08 07:00:00 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 10:01:01 UTC) #16
Message was sent while issue was closed.
Change committed as 262364

Powered by Google App Engine
This is Rietveld 408576698