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

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

Issue 850283003: Add a new webstorePrivate API to show a permission prompt for delegated installs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testext_permission_prompt
Patch Set: allow dashboard Created 5 years, 10 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/webstore_private.json
diff --git a/chrome/common/extensions/api/webstore_private.json b/chrome/common/extensions/api/webstore_private.json
index 2ac2c7b35be620e551ccc9259458c848cb892d16..83795a2fa24cd81de24f86cc8cdfc106198054cd 100644
--- a/chrome/common/extensions/api/webstore_private.json
+++ b/chrome/common/extensions/api/webstore_private.json
@@ -116,6 +116,61 @@
]
},
{
+ "name": "showPermissionPromptForDelegatedInstall",
+ "description": "Shows a permission prompt for the given extension, for installing to a different account.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The id of the extension to be installled.",
+ "minLength": 32,
+ "maxLength": 32
+ },
+ "manifest": {
+ "type": "string",
+ "description": "A string with the contents of the extension's manifest.json file. During the install process, the browser will check that the downloaded extension's manifest matches what was passed in here.",
+ "minLength": 1
+ },
+ "delegatedUser": {
+ "type": "string",
+ "description": "The display name of the user for whom the extension should be installed."
+ },
+ "iconUrl": {
+ "type": "string",
+ "optional": true,
+ "desciption": "A URL for the image to display in the confirmation dialog"
+ },
+ "iconData": {
+ "type": "string",
+ "optional": true,
+ "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
+ },
+ "localizedName": {
+ "type": "string",
+ "optional": true,
+ "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "result",
+ "type": "string",
+ "description": "A string result code, which will be empty upon success. The possible values in the case of errors include 'unknown_error', 'user_cancelled', 'manifest_error', 'icon_error', 'invalid_id', and 'invalid_icon_url'."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "enableAppLauncher",
"description": "",
"parameters": [

Powered by Google App Engine
This is Rietveld 408576698