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

Issue 10796114: Added ToJson to JSON schema compiler. (Closed)

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

Description

Added ToJson to JSON schema compiler. Also re-factored the recently landed Debugger api (I believe it's the only API to have compiled events, so far) BUG=138767 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148878

Patch Set 1 #

Total comments: 12

Patch Set 2 : scoped_ptr<std::string> -> std::string, changed tests a little bit #

Total comments: 12

Patch Set 3 : Changes per comments #

Total comments: 7

Patch Set 4 : Small test #

Total comments: 1

Patch Set 5 : Fixed small Any bug #

Patch Set 6 : Fixed scope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -100 lines) Patch
M chrome/browser/extensions/api/debugger/debugger_api.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 5 4 chunks +20 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 3 chunks +95 lines, -88 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
A + tools/json_schema_compiler/test/content_settings.json View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/json_schema_compiler/test/objects_unittest.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mitchellwrosen
8 years, 5 months ago (2012-07-24 20:08:47 UTC) #1
not at google - send to devlin
http://codereview.chromium.org/10796114/diff/1/chrome/browser/extensions/api/debugger/debugger_api.cc File chrome/browser/extensions/api/debugger/debugger_api.cc (right): http://codereview.chromium.org/10796114/diff/1/chrome/browser/extensions/api/debugger/debugger_api.cc#newcode257 chrome/browser/extensions/api/debugger/debugger_api.cc:257: scoped_ptr<std::string> json_args(OnDetach::ToJson(debuggee)); just return string http://codereview.chromium.org/10796114/diff/1/chrome/browser/extensions/api/debugger/debugger_api.cc#newcode311 chrome/browser/extensions/api/debugger/debugger_api.cc:311: params)); nit: ...
8 years, 5 months ago (2012-07-24 23:04:29 UTC) #2
mitchellwrosen
https://chromiumcodereview.appspot.com/10796114/diff/1/chrome/browser/extensions/api/debugger/debugger_api.cc File chrome/browser/extensions/api/debugger/debugger_api.cc (right): https://chromiumcodereview.appspot.com/10796114/diff/1/chrome/browser/extensions/api/debugger/debugger_api.cc#newcode257 chrome/browser/extensions/api/debugger/debugger_api.cc:257: scoped_ptr<std::string> json_args(OnDetach::ToJson(debuggee)); On 2012/07/24 23:04:29, kalman wrote: > just ...
8 years, 5 months ago (2012-07-25 17:08:20 UTC) #3
not at google - send to devlin
https://chromiumcodereview.appspot.com/10796114/diff/5001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10796114/diff/5001/tools/json_schema_compiler/cc_generator.py#newcode91 tools/json_schema_compiler/cc_generator.py:91: cpp_util.Classname(event.name), event, True)) Boolean arguments should be avoided because ...
8 years, 5 months ago (2012-07-25 23:28:41 UTC) #4
mitchellwrosen
https://chromiumcodereview.appspot.com/10796114/diff/5001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): https://chromiumcodereview.appspot.com/10796114/diff/5001/tools/json_schema_compiler/cc_generator.py#newcode91 tools/json_schema_compiler/cc_generator.py:91: cpp_util.Classname(event.name), event, True)) On 2012/07/25 23:28:41, kalman wrote: > ...
8 years, 5 months ago (2012-07-26 02:01:17 UTC) #5
not at google - send to devlin
Apologies for not picking up on the test earlier. http://codereview.chromium.org/10796114/diff/7005/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/10796114/diff/7005/tools/json_schema_compiler/cc_generator.py#newcode736 tools/json_schema_compiler/cc_generator.py:736: ...
8 years, 5 months ago (2012-07-26 02:39:58 UTC) #6
mitchellwrosen
Pushing this non-compiling patch, so please don't LGTM it =). Problem: Since any::Any has a ...
8 years, 5 months ago (2012-07-26 17:38:58 UTC) #7
not at google - send to devlin
the Any thing is a bug. It should take a const& as you said... const ...
8 years, 5 months ago (2012-07-26 23:33:37 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/10796114/16001
8 years, 4 months ago (2012-07-28 00:31:53 UTC) #9
commit-bot: I haz the power
Try job failure for 10796114-16001 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-07-28 00:59:11 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/10796114/7008
8 years, 4 months ago (2012-07-28 01:21:40 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-07-28 03:59:52 UTC) #12
Change committed as 148878

Powered by Google App Engine
This is Rietveld 408576698