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

Unified Diff: chrome/common/extensions/api/management.json

Issue 508263003: Add getSelf method to management API to use without the "management" permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 4 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
Index: chrome/common/extensions/api/management.json
diff --git a/chrome/common/extensions/api/management.json b/chrome/common/extensions/api/management.json
index 59414028ad84eb23bdafa3cb78757cd38d5230de..42976387c939b4d0c86f8fb02e77b5e588736982 100644
--- a/chrome/common/extensions/api/management.json
+++ b/chrome/common/extensions/api/management.json
@@ -181,6 +181,23 @@
]
},
{
+ "name": "getSelf",
+ "description": "Returns information about the calling extension, app, or theme. Note: This function can be used without requesting the 'management' permission in the manifest.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "result",
+ "$ref": "ExtensionInfo"
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "getPermissionWarningsById",
"description": "Returns a list of <a href='permission_warnings'>permission warnings</a> for the given extension id.",
"parameters": [
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | chrome/common/extensions/docs/templates/intros/management.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698