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

Issue 134153005: Add strictness to Schema::Validate() (Closed)

Created:
6 years, 11 months ago by binjin
Modified:
6 years, 11 months ago
Reviewers:
Joao da Silva
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@expand-policy-schema-2
Visibility:
Public.

Description

Add strictness to Schema::Validate() WIP BUG=258339 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246770

Patch Set 1 : initial version of Schema::Validate() with strictness #

Patch Set 2 : minor fixes #

Patch Set 3 : pull from previous CL #

Total comments: 34

Patch Set 4 : fixes #

Patch Set 5 : fix a bug and enhance tests #

Total comments: 37

Patch Set 6 : more fixes, add integer-to-double promotion #

Patch Set 7 : fix style #

Total comments: 10

Patch Set 8 : minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -39 lines) Patch
M components/policy/core/common/schema.h View 1 2 3 4 5 2 chunks +35 lines, -2 lines 0 comments Download
M components/policy/core/common/schema.cc View 1 2 3 4 5 6 7 3 chunks +157 lines, -13 lines 0 comments Download
M components/policy/core/common/schema_map.cc View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M components/policy/core/common/schema_unittest.cc View 1 2 3 4 5 6 7 10 chunks +209 lines, -23 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
binjin
Hello Joao, Here is the initial version for 3rd CL. PTAL Bin
6 years, 11 months ago (2014-01-21 15:37:54 UTC) #1
Joao da Silva
https://codereview.chromium.org/134153005/diff/90002/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/134153005/diff/90002/components/policy/core/common/schema.cc#newcode638 components/policy/core/common/schema.cc:638: *error = "Fatal error: The schema itself is invalid."; ...
6 years, 11 months ago (2014-01-22 10:49:53 UTC) #2
binjin
https://codereview.chromium.org/134153005/diff/90002/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/134153005/diff/90002/components/policy/core/common/schema.cc#newcode661 components/policy/core/common/schema.cc:661: } else { On 2014/01/22 10:49:53, Joao da Silva ...
6 years, 11 months ago (2014-01-22 12:46:53 UTC) #3
binjin
Hello Joao, As talked with you offline, I have wrong understanding of SCHEMA_ALLOW_INVALID_TOPLEVEL on the ...
6 years, 11 months ago (2014-01-23 12:01:31 UTC) #4
Joao da Silva
This looks much better! It's ready to go after fixing a couple of little details, ...
6 years, 11 months ago (2014-01-23 15:52:36 UTC) #5
binjin
Hello Joao, PTAL at the newest patch. Bin https://codereview.chromium.org/134153005/diff/300001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/134153005/diff/300001/components/policy/core/common/schema.cc#newcode636 components/policy/core/common/schema.cc:636: std::string ...
6 years, 11 months ago (2014-01-23 17:20:13 UTC) #6
Joao da Silva
The remaining comments are all trivial, so lgtm after fixing them. https://codereview.chromium.org/134153005/diff/300001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): ...
6 years, 11 months ago (2014-01-23 20:18:46 UTC) #7
binjin
https://codereview.chromium.org/134153005/diff/400001/components/policy/core/common/schema.cc File components/policy/core/common/schema.cc (right): https://codereview.chromium.org/134153005/diff/400001/components/policy/core/common/schema.cc#newcode643 components/policy/core/common/schema.cc:643: // Allow the integer to double promition. Note that ...
6 years, 11 months ago (2014-01-23 20:38:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/134153005/450001
6 years, 11 months ago (2014-01-23 20:39:13 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=250754
6 years, 11 months ago (2014-01-23 23:19:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/134153005/450001
6 years, 11 months ago (2014-01-23 23:21:14 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 01:39:08 UTC) #12
Message was sent while issue was closed.
Change committed as 246770

Powered by Google App Engine
This is Rietveld 408576698