diff options
author | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 01:22:33 +0000 |
---|---|---|
committer | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 01:22:33 +0000 |
commit | ce35418b1f26e07e4e9f2fc34f3a6f2b1d5ba796 (patch) | |
tree | e43f2034368d240ca4b60ead3e5b5d3f88ddd55d /extensions/common/extension.cc | |
parent | f2a9c64cc5a116928fca041ed2f68aff1e33e6c0 (diff) | |
download | chromium_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 'extensions/common/extension.cc')
-rw-r--r-- | extensions/common/extension.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc index f38d547..a35aa6b 100644 --- a/extensions/common/extension.cc +++ b/extensions/common/extension.cc @@ -333,12 +333,12 @@ bool Extension::RequiresSortOrdinal() const { bool Extension::ShouldDisplayInAppLauncher() const { // Only apps should be displayed in the launcher. - return is_app() && display_in_launcher_; + return is_app() && display_in_launcher_ && !is_ephemeral(); } bool Extension::ShouldDisplayInNewTabPage() const { // Only apps should be displayed on the NTP. - return is_app() && display_in_new_tab_page_; + return is_app() && display_in_new_tab_page_ && !is_ephemeral(); } bool Extension::ShouldDisplayInExtensionSettings() const { |