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

Issue 12647017: Lazily require types when validating Extensions API calls (Closed)

Created:
7 years, 9 months ago by cduvall
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Lazily require types when validating Extensions API calls Custom types now have their own JS files, which is referenced by the 'js_module' key in the schema. This makes it so $ref types can be referenced by other APIs without having to load the whole API of the type referenced. BUG=222156 TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189839

Patch Set 1 : #

Total comments: 33

Patch Set 2 : fixes #

Total comments: 10

Patch Set 3 : more fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -218 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/api/content_settings.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/storage.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/types.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 4 chunks +31 lines, -12 lines 0 comments Download
M chrome/renderer/extensions/json_schema_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/binding.js View 1 2 6 chunks +20 lines, -27 lines 0 comments Download
A chrome/renderer/resources/extensions/chrome_setting.js View 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/content_setting.js View 1 chunk +50 lines, -0 lines 0 comments Download
D chrome/renderer/resources/extensions/content_settings_custom_bindings.js View 1 chunk +0 lines, -56 lines 0 comments Download
M chrome/renderer/resources/extensions/json_schema.js View 1 2 3 chunks +18 lines, -9 lines 0 comments Download
A chrome/renderer/resources/extensions/storage_area.js View 1 chunk +41 lines, -0 lines 0 comments Download
D chrome/renderer/resources/extensions/storage_custom_bindings.js View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/renderer/resources/extensions/types_custom_bindings.js View 1 chunk +0 lines, -51 lines 0 comments Download
M chrome/renderer/resources/extensions/utils.js View 1 2 2 chunks +18 lines, -9 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
cduvall
I ran some browser_tests on this that I thought might be affected, and they all ...
7 years, 9 months ago (2013-03-20 20:17:29 UTC) #1
not at google - send to devlin
nice! mostly nits. https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js File chrome/renderer/resources/extensions/binding.js (right): https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js#newcode121 chrome/renderer/resources/extensions/binding.js:121: var customType = require(t['js_module'])[t['js_module']]; * t ...
7 years, 9 months ago (2013-03-21 00:01:13 UTC) #2
cduvall
https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js File chrome/renderer/resources/extensions/binding.js (right): https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js#newcode121 chrome/renderer/resources/extensions/binding.js:121: var customType = require(t['js_module'])[t['js_module']]; On 2013/03/21 00:01:13, kalman wrote: ...
7 years, 9 months ago (2013-03-21 00:59:51 UTC) #3
not at google - send to devlin
minor comments left, lgtm. https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js File chrome/renderer/resources/extensions/binding.js (right): https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js#newcode209 chrome/renderer/resources/extensions/binding.js:209: // Add types to global ...
7 years, 9 months ago (2013-03-21 01:36:55 UTC) #4
cduvall
https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js File chrome/renderer/resources/extensions/binding.js (right): https://codereview.chromium.org/12647017/diff/9001/chrome/renderer/resources/extensions/binding.js#newcode209 chrome/renderer/resources/extensions/binding.js:209: // Add types to global schemaValidator On 2013/03/21 01:36:55, ...
7 years, 9 months ago (2013-03-21 17:16:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12647017/32001
7 years, 9 months ago (2013-03-21 17:17:12 UTC) #6
commit-bot: I haz the power
Presubmit check for 12647017-32001 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-21 17:17:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12647017/32001
7 years, 9 months ago (2013-03-21 17:23:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12647017/32001
7 years, 9 months ago (2013-03-22 05:42:16 UTC) #9
not at google - send to devlin
Clark, the CQ looks stuck but it also looks happy. Could you dcommit it asap ...
7 years, 9 months ago (2013-03-22 05:43:04 UTC) #10
cduvall
7 years, 9 months ago (2013-03-22 06:57:49 UTC) #11
On 2013/03/22 05:43:04, kalman wrote:
> Clark, the CQ looks stuck but it also looks happy. Could you dcommit it asap
> tomorrow? Would be good to get this bug fix in before the dev channel is cut
on
> Monday.

Ok, I'll dcommit first thing tomorrow.

Powered by Google App Engine
This is Rietveld 408576698