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

Issue 10825029: Added JSON schema compiler support for serialized types (Closed)

Created:
8 years, 5 months ago by mitchellwrosen
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Matt Tytel
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added JSON schema compiler support for serialized types Currently supports string->int, string->int64, and int->string. BUG=139076 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149302

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 10

Patch Set 3 : compiled_type -> type support #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Indent typo fix #

Total comments: 12

Patch Set 6 : More changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -63 lines) Patch
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 5 5 chunks +70 lines, -13 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 4 5 5 chunks +30 lines, -14 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 2 3 5 chunks +8 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 2 3 4 5 1 chunk +43 lines, -5 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 4 5 5 chunks +32 lines, -21 lines 0 comments Download
M tools/json_schema_compiler/model_test.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
mitchellwrosen
8 years, 5 months ago (2012-07-26 01:53:09 UTC) #1
not at google - send to devlin
High level comment: There's more extra code for this than I would have expected; and ...
8 years, 5 months ago (2012-07-26 04:51:42 UTC) #2
mitchellwrosen
On 2012/07/26 04:51:42, kalman wrote: > High level comment: > > There's more extra code ...
8 years, 5 months ago (2012-07-26 20:00:27 UTC) #3
not at google - send to devlin
To answer a couple of your overall comments: > A couple APIs I looked at ...
8 years, 4 months ago (2012-07-27 04:14:28 UTC) #4
mitchellwrosen
This patch adds code that generates the appropriate Values of the right type. No GURL ...
8 years, 4 months ago (2012-07-30 20:52:45 UTC) #5
mitchellwrosen
https://chromiumcodereview.appspot.com/10825029/diff/8002/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10825029/diff/8002/tools/json_schema_compiler/cc_generator.py#newcode470 tools/json_schema_compiler/cc_generator.py:470: .Append('if (!%s)' % Ugh, mis-aligned indents here. I'll fix ...
8 years, 4 months ago (2012-07-31 00:10:37 UTC) #6
not at google - send to devlin
lgtm http://codereview.chromium.org/10825029/diff/13001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/10825029/diff/13001/tools/json_schema_compiler/cc_generator.py#newcode356 tools/json_schema_compiler/cc_generator.py:356: if prop.optional and prop.type_ == prop.compiled_type: line surprises ...
8 years, 4 months ago (2012-07-31 06:37:41 UTC) #7
mitchellwrosen
https://chromiumcodereview.appspot.com/10825029/diff/13001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10825029/diff/13001/tools/json_schema_compiler/cc_generator.py#newcode356 tools/json_schema_compiler/cc_generator.py:356: if prop.optional and prop.type_ == prop.compiled_type: On 2012/07/31 06:37:41, ...
8 years, 4 months ago (2012-07-31 17:50:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10825029/4004
8 years, 4 months ago (2012-07-31 19:11:46 UTC) #9
commit-bot: I haz the power
Try job failure for 10825029-4004 (retry) on mac_rel for steps "base_unittests, browser_tests, cacheinvalidation_unittests, jingle_unittests, remoting_unittests, ...
8 years, 4 months ago (2012-07-31 19:27:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10825029/4004
8 years, 4 months ago (2012-07-31 21:30:21 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 22:47:51 UTC) #12
Change committed as 149302

Powered by Google App Engine
This is Rietveld 408576698