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.cc | |
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.cc')
-rw-r--r-- | extensions/common/extension.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc index 46810ad..ada3b31 100644 --- a/extensions/common/extension.cc +++ b/extensions/common/extension.cc @@ -770,9 +770,11 @@ ExtensionInfo::~ExtensionInfo() {} InstalledExtensionInfo::InstalledExtensionInfo( const Extension* extension, bool is_update, + bool from_ephemeral, const std::string& old_name) : extension(extension), is_update(is_update), + from_ephemeral(from_ephemeral), old_name(old_name) {} UnloadedExtensionInfo::UnloadedExtensionInfo( |