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

Unified Diff: extensions/common/api/_api_features.json

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/common/extension_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/_api_features.json
diff --git a/extensions/common/api/_api_features.json b/extensions/common/api/_api_features.json
index 2052a41412364ae1a5304c8b018ab0e5ed129c9d..e15c27b618df13991516270b15184bfb742ac9b6 100644
--- a/extensions/common/api/_api_features.json
+++ b/extensions/common/api/_api_features.json
@@ -53,7 +53,14 @@
"contexts": ["blessed_extension", "unblessed_extension", "content_script"]
},
"runtime.connect": {
- "contexts": "all",
+ // Everything except WebUI.
+ "contexts": [
+ "blessed_web_page",
+ "content_script",
+ "blessed_extension",
+ "unblessed_extension",
+ "web_page"
+ ],
"matches": ["<all_urls>"]
},
"runtime.getURL": {
@@ -74,7 +81,14 @@
"contexts": ["blessed_extension", "unblessed_extension", "content_script"]
},
"runtime.sendMessage": {
- "contexts": "all",
+ // Everything except WebUI.
+ "contexts": [
+ "blessed_web_page",
+ "content_script",
+ "blessed_extension",
+ "unblessed_extension",
+ "web_page"
+ ],
"matches": ["<all_urls>"]
},
"runtime.setUninstallURL": {
@@ -104,7 +118,13 @@
"internal": true,
"channel": "stable",
"extension_types": "all",
- "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
+ // Everything except web pages.
+ "contexts": [
+ "blessed_extension",
+ "content_script",
+ "unblessed_extension",
+ "webui"
+ ]
},
"types": {
"channel": "stable",
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/common/extension_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698