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

Issue 14494013: Allow API functions and events to have entries in _api_features.json (Closed)

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

Description

Allow API functions and events to have entries in _api_features.json If an API is only partially available to a context, the availability can be specified per function or per event in _api_features.json. BUG=55316, 120070, 232247 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199155

Patch Set 1 : #

Total comments: 22

Patch Set 2 : fixes #

Total comments: 10

Patch Set 3 : more fixes #

Patch Set 4 : tests #

Patch Set 5 : fix browser_tests, Stubs now inspects _api_features.json #

Total comments: 8

Patch Set 6 : more fixes #

Patch Set 7 : fix bug in searching for unprivileged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -87 lines) Patch
M chrome/common/extensions/api/_api_features.json View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 5 5 chunks +114 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 2 3 4 5 9 chunks +1 line, -11 lines 0 comments Download
M chrome/common/extensions/api/test.json View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 2 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 5 chunks +26 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/binding.js View 1 2 3 4 5 6 8 chunks +49 lines, -29 lines 0 comments Download
M chrome/renderer/resources/extensions/test_custom_bindings.js View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js View 1 2 3 4 2 chunks +1 line, -16 lines 0 comments Download
M chrome/test/data/extensions/api_test/stubs/content_script.js View 1 2 3 4 5 4 chunks +19 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
cduvall
7 years, 8 months ago (2013-04-26 01:30:32 UTC) #1
cduvall
https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json#newcode56 chrome/common/extensions/api/_api_features.json:56: "contexts": ["blessed_extension", "unblessed_extension", "content_script"] Not sure if this is ...
7 years, 8 months ago (2013-04-26 02:07:21 UTC) #2
not at google - send to devlin
Despite most of my comments, the main one is in binding.js - we should look ...
7 years, 8 months ago (2013-04-27 01:02:42 UTC) #3
cduvall
As I said in a comment, I'm not sure how much more logic can be ...
7 years, 7 months ago (2013-05-01 02:51:47 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json#newcode56 chrome/common/extensions/api/_api_features.json:56: "contexts": ["blessed_extension", "unblessed_extension", "content_script"] On 2013/05/01 02:51:47, cduvall wrote: ...
7 years, 7 months ago (2013-05-01 20:47:03 UTC) #5
cduvall
https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/14494013/diff/2001/chrome/common/extensions/api/_api_features.json#newcode56 chrome/common/extensions/api/_api_features.json:56: "contexts": ["blessed_extension", "unblessed_extension", "content_script"] On 2013/05/01 20:47:04, kalman wrote: ...
7 years, 7 months ago (2013-05-01 23:47:10 UTC) #6
not at google - send to devlin
code lgtm, but is there a test you can augment, or add, or make sure ...
7 years, 7 months ago (2013-05-02 00:19:14 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/14494013/31001
7 years, 7 months ago (2013-05-02 00:40:43 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=37373
7 years, 7 months ago (2013-05-02 03:08:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/14494013/31001
7 years, 7 months ago (2013-05-02 03:11:56 UTC) #10
cduvall
Ben: could you take another look at this, I had to fix Stubs to inspect ...
7 years, 7 months ago (2013-05-03 02:10:02 UTC) #11
cduvall
https://codereview.chromium.org/14494013/diff/56001/chrome/common/extensions/api/events.json File chrome/common/extensions/api/events.json (right): https://codereview.chromium.org/14494013/diff/56001/chrome/common/extensions/api/events.json#newcode11 chrome/common/extensions/api/events.json:11: "check_unprivileged": true, This is just necessary while these APIs ...
7 years, 7 months ago (2013-05-03 02:14:02 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/14494013/diff/56001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/14494013/diff/56001/chrome/renderer/extensions/dispatcher.cc#newcode133 chrome/renderer/extensions/dispatcher.cc:133: IDR_EXTENSION_API_FEATURES).as_string()); do you need to write it back to ...
7 years, 7 months ago (2013-05-03 04:58:14 UTC) #13
not at google - send to devlin
lgtm again after those changes
7 years, 7 months ago (2013-05-03 04:58:32 UTC) #14
cduvall
https://codereview.chromium.org/14494013/diff/56001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/14494013/diff/56001/chrome/renderer/extensions/dispatcher.cc#newcode133 chrome/renderer/extensions/dispatcher.cc:133: IDR_EXTENSION_API_FEATURES).as_string()); On 2013/05/03 04:58:14, kalman wrote: > do you ...
7 years, 7 months ago (2013-05-07 23:44:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/14494013/72001
7 years, 7 months ago (2013-05-07 23:44:39 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-08 14:25:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/14494013/89002
7 years, 7 months ago (2013-05-08 14:27:52 UTC) #18
commit-bot: I haz the power
7 years, 7 months ago (2013-05-09 06:51:55 UTC) #19
Message was sent while issue was closed.
Change committed as 199155

Powered by Google App Engine
This is Rietveld 408576698