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

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

Issue 6992047: Change the web store private install API to accept a localized extension name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index f69c49d71027ea4c856a5d2d114933e80f5d7a13..10b621444cc5906eb73c591acc0460e42e25826f 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -5150,26 +5150,40 @@
]
},
{
- "name": "beginInstallWithManifest",
+ "name": "beginInstallWithManifest2",
"description": "Initiates the install process for the given extension. This must be called during a user gesture.",
"parameters": [
{
- "name": "id",
- "type": "string",
- "description": "The id of the extension to be installled.",
- "minLength": 32,
- "maxLength": 32
- },
- {
- "name": "icon_data",
- "type": "string",
- "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
- },
- {
- "name": "manifest_json",
- "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
+ "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
+ },
+ "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."
+ },
+ "locale": {
+ "type": "string",
+ "optional": true,
+ "description": "The name of the locale used for generating localizedName. This should be the name of one of the directories in the _locales folder of the extension, or the default_locale setting from the manifest."
+ }
+ }
},
{
"name": "callback",

Powered by Google App Engine
This is Rietveld 408576698