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

Issue 1062573004: [Extension API Extern Generation] Fix a few bugs in extern generation (Closed)

Created:
5 years, 8 months ago by Devlin
Modified:
5 years, 8 months ago
CC:
chromium-reviews, Oren Blasberg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extension API Extern Generation] Fix a few bugs in extern generation Properly handle the case of an "object" (one deliberately left undefined in the idl/json), and fix an off-by-one error in the comment wrapping. Add tests for each. BUG=469920 Committed: https://crrev.com/68411116575f7afcaf5491ed893019da12b649ae Cr-Commit-Position: refs/heads/master@{#324063}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Dan's #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -22 lines) Patch
M tools/json_schema_compiler/code.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/code_test.py View 2 chunks +10 lines, -1 line 0 comments Download
M tools/json_schema_compiler/js_externs_generator.py View 1 2 chunks +20 lines, -19 lines 1 comment Download
M tools/json_schema_compiler/js_externs_generator_test.py View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
Devlin
Nice and short one for you, Dan. :)
5 years, 8 months ago (2015-04-06 17:05:40 UTC) #2
Dan Beam
lgtm w/nit https://codereview.chromium.org/1062573004/diff/1/tools/json_schema_compiler/js_externs_generator.py File tools/json_schema_compiler/js_externs_generator.py (right): https://codereview.chromium.org/1062573004/diff/1/tools/json_schema_compiler/js_externs_generator.py#newcode220 tools/json_schema_compiler/js_externs_generator.py:220: c = self._GenerateObjectDefinition(js_type.properties) this is OK i ...
5 years, 8 months ago (2015-04-07 01:54:46 UTC) #3
Devlin
https://codereview.chromium.org/1062573004/diff/1/tools/json_schema_compiler/js_externs_generator.py File tools/json_schema_compiler/js_externs_generator.py (right): https://codereview.chromium.org/1062573004/diff/1/tools/json_schema_compiler/js_externs_generator.py#newcode220 tools/json_schema_compiler/js_externs_generator.py:220: c = self._GenerateObjectDefinition(js_type.properties) On 2015/04/07 01:54:46, Dan Beam wrote: ...
5 years, 8 months ago (2015-04-07 16:13:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062573004/20001
5 years, 8 months ago (2015-04-07 16:14:04 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-07 17:21:14 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/68411116575f7afcaf5491ed893019da12b649ae Cr-Commit-Position: refs/heads/master@{#324063}
5 years, 8 months ago (2015-04-07 17:22:12 UTC) #9
Tyler Breisacher (Chromium)
5 years, 8 months ago (2015-04-22 19:50:58 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1062573004/diff/20001/tools/json_schema_compi...
File tools/json_schema_compiler/js_externs_generator.py (right):

https://codereview.chromium.org/1062573004/diff/20001/tools/json_schema_compi...
tools/json_schema_compiler/js_externs_generator.py:37: .Append('/**
@fileoverview Externs generated from namespace: %s */' %
Can we add some text here explaining HOW it was generated?

"Externs generated from tools/json_schema_compiler/js_externs_generator.py, from
namespace <namespace>"

or something. Bonus points if it tells you exactly how to run the thing to
regenerate it from the latest IDL.

Powered by Google App Engine
This is Rietveld 408576698