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

Issue 9403006: Extensions: run "custom bindings" v8-extensions in content scripts. (Closed)

Created:
8 years, 10 months ago by not at google - send to devlin
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org, benwells
Visibility:
Public.

Description

Extensions: run "custom bindings" v8-extensions in content scripts. Currently they're only run in "privileged" extension processes (e.g. background pages). As part of this, plug some places where API bindings are set up unnecessarily in content scripts: firstly in ExtensionDispatcher, where the "custom bindings" v8-extensions are allowed to run in content scripts, and secondly in SchemaGeneratedBindings where schemas for privileged APIs are sent to content scripts. BUG=80310 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122243

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 15

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 1

Patch Set 7 : final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -119 lines) Patch
M chrome/common/extensions/api/extension_api.h View 1 2 3 4 5 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 4 chunks +70 lines, -16 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 chunks +26 lines, -1 line 0 comments Download
M chrome/common/extensions/api/storage.json View 9 chunks +1 line, -12 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 2 3 4 5 6 3 chunks +18 lines, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 2 3 4 5 6 1 chunk +17 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context_set_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/custom_bindings_util.h View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/custom_bindings_util.cc View 1 2 3 4 5 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 5 chunks +33 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/schema_generated_bindings.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 4 chunks +64 lines, -69 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
not at google - send to devlin
P.S. There are some really nice patches coming after this.
8 years, 10 months ago (2012-02-15 07:50:51 UTC) #1
koz (OOO until 15th September)
lgtm https://chromiumcodereview.appspot.com/9403006/diff/6001/chrome/common/extensions/api/extension_api.h File chrome/common/extensions/api/extension_api.h (right): https://chromiumcodereview.appspot.com/9403006/diff/6001/chrome/common/extensions/api/extension_api.h#newcode43 chrome/common/extensions/api/extension_api.h:43: // Gets whether *every* path in the API ...
8 years, 10 months ago (2012-02-15 23:43:11 UTC) #2
not at google - send to devlin
http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.h File chrome/common/extensions/api/extension_api.h (right): http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.h#newcode43 chrome/common/extensions/api/extension_api.h:43: // Gets whether *every* path in the API is ...
8 years, 10 months ago (2012-02-16 00:06:27 UTC) #3
Aaron Boodman
http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.cc#newcode184 chrome/common/extensions/api/extension_api.cc:184: std::string api_name; This is going to be replaced with ...
8 years, 10 months ago (2012-02-16 00:17:13 UTC) #4
not at google - send to devlin
http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/9403006/diff/6001/chrome/common/extensions/api/extension_api.cc#newcode184 chrome/common/extensions/api/extension_api.cc:184: std::string api_name; On 2012/02/16 00:17:13, Aaron Boodman wrote: > ...
8 years, 10 months ago (2012-02-16 01:45:53 UTC) #5
Aaron Boodman
lgtm http://codereview.chromium.org/9403006/diff/6001/chrome/renderer/extensions/chrome_v8_context_set_unittest.cc File chrome/renderer/extensions/chrome_v8_context_set_unittest.cc (right): http://codereview.chromium.org/9403006/diff/6001/chrome/renderer/extensions/chrome_v8_context_set_unittest.cc#newcode25 chrome/renderer/extensions/chrome_v8_context_set_unittest.cc:25: new ChromeV8Context(v8_context, frame, extension_id, false); On 2012/02/16 01:45:53, ...
8 years, 10 months ago (2012-02-16 02:01:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9403006/1032
8 years, 10 months ago (2012-02-16 03:05:36 UTC) #7
commit-bot: I haz the power
8 years, 10 months ago (2012-02-16 05:32:50 UTC) #8
Change committed as 122243

Powered by Google App Engine
This is Rietveld 408576698