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

Issue 11953121: Fix up how the JSON Schema compiler decides whether to include or forward (Closed)

Created:
7 years, 11 months ago by not at google - send to devlin
Modified:
7 years, 10 months ago
Reviewers:
Fady Samuel, Yoyo Zhou
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Fix up how the JSON Schema compiler decides whether to include or forward declare references to C++ types in other files. This fixed up a problem where references as part of required properties would cause compilation errors, specifically for the use of tabs.InjectDetails from the webview API. BUG=171726 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179232

Patch Set 1 #

Total comments: 4

Patch Set 2 : yoz #

Patch Set 3 : revert changes to webview so that this can land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -141 lines) Patch
M chrome/common/extensions/api/app_window.idl View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/common/extensions/api/events.json View 2 chunks +27 lines, -27 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 5 chunks +8 lines, -6 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 4 chunks +78 lines, -66 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 2 chunks +10 lines, -22 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 2 chunks +2 lines, -1 line 0 comments Download
M tools/json_schema_compiler/schema_util.py View 1 1 chunk +12 lines, -8 lines 0 comments Download
M tools/json_schema_compiler/schema_util_test.py View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
not at google - send to devlin
7 years, 11 months ago (2013-01-25 22:32:09 UTC) #1
Fady Samuel
Awesome! Thanks! LGTM
7 years, 11 months ago (2013-01-25 22:35:22 UTC) #2
Yoyo Zhou
LGTM with nits https://codereview.chromium.org/11953121/diff/1/tools/json_schema_compiler/cpp_type_generator.py File tools/json_schema_compiler/cpp_type_generator.py (right): https://codereview.chromium.org/11953121/diff/1/tools/json_schema_compiler/cpp_type_generator.py#newcode233 tools/json_schema_compiler/cpp_type_generator.py:233: hard=(not param.optional)) I think these parens ...
7 years, 11 months ago (2013-01-26 01:43:02 UTC) #3
not at google - send to devlin
There's unfortunately another problem with having the tabs API $ref'd to from the webview API, ...
7 years, 11 months ago (2013-01-26 04:35:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11953121/16002
7 years, 10 months ago (2013-01-28 22:41:07 UTC) #5
commit-bot: I haz the power
7 years, 10 months ago (2013-01-29 00:56:29 UTC) #6
Message was sent while issue was closed.
Change committed as 179232

Powered by Google App Engine
This is Rietveld 408576698