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

Issue 10790040: JSON Schema Compiler now supports conversion from Choice to base::Value. (Closed)

Created:
8 years, 5 months ago by chebert
Modified:
8 years, 5 months ago
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

JSON Schema Compiler now supports conversion from Choice to base::Value. BUG=133636 TEST=choices_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147904

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : added comments/style #

Total comments: 39

Patch Set 4 : #

Total comments: 20

Patch Set 5 : Trying a refactor of GetChoiceValue and CreateEnumValue #

Total comments: 3

Patch Set 6 : GetChoiceType() no longer takes a parameter, and switch has a space after it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -44 lines) Patch
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 5 4 chunks +78 lines, -43 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 3 4 5 3 chunks +20 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/choices.json View 1 chunk +21 lines, -1 line 0 comments Download
M tools/json_schema_compiler/test/choices_unittest.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
chebert
I'm not sure how you will feel about the from_function, but it was all I ...
8 years, 5 months ago (2012-07-17 22:17:36 UTC) #1
not at google - send to devlin
nice one https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/cc_generator.py#newcode258 tools/json_schema_compiler/cc_generator.py:258: elif not prop.type_ == PropertyType.CHOICES: Prefer to ...
8 years, 5 months ago (2012-07-18 01:21:35 UTC) #2
chebert
https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/cc_generator.py#newcode258 tools/json_schema_compiler/cc_generator.py:258: elif not prop.type_ == PropertyType.CHOICES: On 2012/07/18 01:21:35, kalman ...
8 years, 5 months ago (2012-07-19 00:56:01 UTC) #3
not at google - send to devlin
https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/h_generator.py File tools/json_schema_compiler/h_generator.py (right): https://chromiumcodereview.appspot.com/10790040/diff/3001/tools/json_schema_compiler/h_generator.py#newcode294 tools/json_schema_compiler/h_generator.py:294: c.Append('scoped_ptr<base::Value> GetChoiceValue(%s) const;' % On 2012/07/19 00:56:01, chebert wrote: ...
8 years, 5 months ago (2012-07-19 01:48:22 UTC) #4
chebert
https://chromiumcodereview.appspot.com/10790040/diff/8001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10790040/diff/8001/tools/json_schema_compiler/cc_generator.py#newcode257 tools/json_schema_compiler/cc_generator.py:257: self._cpp_type_generator.GetEnumNoneValue(prop))) On 2012/07/19 01:48:22, kalman wrote: > nit: these ...
8 years, 5 months ago (2012-07-19 21:06:17 UTC) #5
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/10790040/diff/5003/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10790040/diff/5003/tools/json_schema_compiler/cc_generator.py#newcode608 tools/json_schema_compiler/cc_generator.py:608: (c.Sblock('scoped_ptr<base::Value> ' where's the static? Should be able ...
8 years, 5 months ago (2012-07-19 23:59:53 UTC) #6
not at google - send to devlin
Sorry, I read that wrong. I didn't realise that these were generating instance methods, since ...
8 years, 5 months ago (2012-07-20 01:00:37 UTC) #7
chebert
> 1. I'm seeing switch(strings) but it should be switch (strings) Done. > 2. I'm ...
8 years, 5 months ago (2012-07-20 01:46:01 UTC) #8
not at google - send to devlin
nice, lgtm (again)
8 years, 5 months ago (2012-07-23 13:52:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/10790040/12002
8 years, 5 months ago (2012-07-23 17:43:19 UTC) #10
commit-bot: I haz the power
8 years, 5 months ago (2012-07-23 19:56:26 UTC) #11
Change committed as 147904

Powered by Google App Engine
This is Rietveld 408576698