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/common/extension.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/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index e3d5dfc..797c906 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -508,12 +508,17 @@ struct InstalledExtensionInfo { // True if the extension is being updated; false if it is being installed. bool is_update; + // True if the extension was previously installed ephemerally and is now + // a regular installed extension. + bool from_ephemeral; + // The name of the extension prior to this update. Will be empty if // |is_update| is false. std::string old_name; InstalledExtensionInfo(const Extension* extension, bool is_update, + bool from_ephemeral, const std::string& old_name); }; |