diff options
author | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 13:52:02 +0000 |
---|---|---|
committer | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 13:52:02 +0000 |
commit | 760f743bd37cb58a68fc0ad5762d7c72182c09f2 (patch) | |
tree | 9e3ab502a63c0d5d7d3099d1a83cc7ceadacca11 /extensions/browser/extension_registry.h | |
parent | 4a9c6870cea0ef71dea3cced7995a3436718ef38 (diff) | |
download | chromium_src-760f743bd37cb58a68fc0ad5762d7c72182c09f2.zip chromium_src-760f743bd37cb58a68fc0ad5762d7c72182c09f2.tar.gz chromium_src-760f743bd37cb58a68fc0ad5762d7c72182c09f2.tar.bz2 |
Optimize promotion of ephemeral apps
Introduces ExtensionService::PromoteEphemeralApp(), which allows an
ephemeral app to be quickly promoted to a regular installed app.
This is called when installing from the app launcher, Web Store
detail page, "Install app" item in the ephemeral app's shelf menu,
or from sync.
BUG=374018
TEST=browser_tests (EphemeralAppBrowserTest.*)
Review URL: https://codereview.chromium.org/297263003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser/extension_registry.h')
-rw-r--r-- | extensions/browser/extension_registry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/browser/extension_registry.h b/extensions/browser/extension_registry.h index 0087645..646863c 100644 --- a/extensions/browser/extension_registry.h +++ b/extensions/browser/extension_registry.h @@ -78,8 +78,12 @@ class ExtensionRegistry : public KeyedService { // any installed extension with |extension|'s ID. If this is an update then // |is_update| is true and must be an installed extension with |extension|'s // ID, and |old_name| must be non-empty. + // If true, |from_ephemeral| indicates that the extension was previously + // installed ephemerally and has been promoted to a regular installed + // extension. |is_update| should also be true. void TriggerOnWillBeInstalled(const Extension* extension, bool is_update, + bool from_ephemeral, const std::string& old_name); // Invokes the observer method OnExtensionUninstalled(). The extension must |