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

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

Issue 12089037: Add management.uninstallSelf to API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 7 years, 11 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 8113906d7faf64789024c1ddedf270c0ddf49e8c..d523783a386b8491e42dc2b55d0bcfcf8d3d0262 100644
--- a/chrome/common/extensions/api/management.json
+++ b/chrome/common/extensions/api/management.json
@@ -253,6 +253,30 @@
]
},
{
+ "name": "uninstallSelf",
+ "description": "Uninstalls the calling extension. Note: This function can be used without requesting the 'management' permission in the manifest.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "options",
+ "optional": "true",
+ "properties": {
+ "showConfirmDialog": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether or not a confirm-uninstall dialog should prompt the user. Defaults to false."
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "true",
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "launchApp",
"description": "Launches an application.",
"parameters": [

Powered by Google App Engine
This is Rietveld 408576698