summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
authortmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-25 01:22:33 +0000
committertmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-25 01:22:33 +0000
commitce35418b1f26e07e4e9f2fc34f3a6f2b1d5ba796 (patch)
treee43f2034368d240ca4b60ead3e5b5d3f88ddd55d /chrome/common/extensions
parentf2a9c64cc5a116928fca041ed2f68aff1e33e6c0 (diff)
downloadchromium_src-ce35418b1f26e07e4e9f2fc34f3a6f2b1d5ba796.zip
chromium_src-ce35418b1f26e07e4e9f2fc34f3a6f2b1d5ba796.tar.gz
chromium_src-ce35418b1f26e07e4e9f2fc34f3a6f2b1d5ba796.tar.bz2
Hide ephemeral apps from UI
Added an IS_EPHEMERAL flag for extensions to identify ephemeral apps. Ephemeral apps are integrated into the extension system, but we use the flag to hide them from UI such as the app launcher, NTP and extension management page. Garbage collection of unused ephemeral apps will be implemented in a future patch. This feature is hidden behind the "enable-ephemeral-apps" switch. BUG=312460 Review URL: https://codereview.chromium.org/75323003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/sync_helper.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/extensions/sync_helper.cc b/chrome/common/extensions/sync_helper.cc
index 9c4f0ac..86457b8 100644
--- a/chrome/common/extensions/sync_helper.cc
+++ b/chrome/common/extensions/sync_helper.cc
@@ -82,7 +82,8 @@ bool IsSyncable(const Extension* extension) {
// apps, creates a new profile (which get default apps) and then enables sync
// for it, then their profile everywhere gets the default apps.
bool is_syncable = (extension->location() == Manifest::INTERNAL &&
- !extension->was_installed_by_default());
+ !extension->was_installed_by_default() &&
+ !extension->is_ephemeral());
// Sync the chrome web store to maintain its position on the new tab page.
is_syncable |= (extension->id() == extension_misc::kWebStoreAppId);
// Sync the chrome component app to maintain its position on the app list.