diff options
author | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-02 23:53:46 +0000 |
---|---|---|
committer | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-02 23:53:46 +0000 |
commit | f66a50a51caad37a29fd51eb26b14d96cc9f51eb (patch) | |
tree | 929cacefa5c3ca6a70c308f8f8859e5fdf82ea2f /chrome/common | |
parent | 47d2f41e5f17f1daab75668b742204d61fba014a (diff) | |
download | chromium_src-f66a50a51caad37a29fd51eb26b14d96cc9f51eb.zip chromium_src-f66a50a51caad37a29fd51eb26b14d96cc9f51eb.tar.gz chromium_src-f66a50a51caad37a29fd51eb26b14d96cc9f51eb.tar.bz2 |
Adds a webstorePrivate method for silently installing extensions.
BUG=98687
TEST=*WebstorePrivate*
Review URL: http://codereview.chromium.org/8430033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 | ||||
-rw-r--r-- | chrome/common/extensions/api/extension_api.json | 32 |
3 files changed, 36 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index ca91aee..52dfbf4 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -75,6 +75,10 @@ const char kAppsGalleryReturnTokens[] = "apps-gallery-return-tokens"; // The URL to use for the gallery link in the app launcher. const char kAppsGalleryURL[] = "apps-gallery-url"; +// The URL that the webstore APIs download extensions from. +// Note: the URL must contain one '%s' for the extension ID. +const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url"; + // The update url used by gallery/webstore extensions. const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 501cb4c..5bb54c1 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -38,6 +38,7 @@ extern const char kAppNotifyChannelServerURL[]; extern const char kAppsCheckoutURL[]; extern const char kAppsGalleryReturnTokens[]; extern const char kAppsGalleryURL[]; +extern const char kAppsGalleryDownloadURL[]; extern const char kAppsGalleryUpdateURL[]; extern const char kAppsNewInstallBubble[]; extern const char kAppsNoThrob[]; diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 7e25c33..df1a44d 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -7904,7 +7904,7 @@ { "name": "expected_id", "type": "string", - "description": "The id of the extension to be installled. This should match a previous call to beginInstallWithManifest3." + "description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3." }, { "name": "callback", @@ -7915,6 +7915,36 @@ ] }, { + "name": "silentlyInstall", + "description": "Silently installs the specified extension, which must already be whitelisted in Chrome.", + "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 + } + } + }, + { + "name": "callback", + "type": "function", + "description": "Called when the extension installation has completed. chrome.extension.lastError may be set if the extension install failed.", + "optional": "true", + "parameters": [] + } + ] + }, + { "name": "getBrowserLogin", "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.", "parameters": [ |