Ensure ephemeral apps have dock icons on mac
App shims are now created for ephemeral apps in the user data directory
to ensure that they have dock icons. App shims are not copied to the
Applications folder as ephemeral apps should be hidden from the OS.
BUG=375027
TEST=Launch an app ephemerally and ensure it has a dock icon, but does
not appear in Spotlight search results. Install the app fully and
ensure it now has both a dock icon and appears in Spotlight.
Review URL: https://codereview.chromium.org/311293002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276436 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_ui_util.h b/chrome/browser/extensions/extension_ui_util.h
index f9add92..c49c2bc 100644
--- a/chrome/browser/extensions/extension_ui_util.h
+++ b/chrome/browser/extensions/extension_ui_util.h
@@ -21,6 +21,12 @@
bool ShouldDisplayInAppLauncher(const Extension* extension,
content::BrowserContext* context);
+// Returns true if the extension can be displayed in the app launcher.
+// Checks whether the extension should be hidden due to policy, but does not
+// exclude ephemeral apps.
+bool CanDisplayInAppLauncher(const Extension* extension,
+ content::BrowserContext* context);
+
// Returns true if the extension should be displayed in the browser NTP.
// Checks whether the extension is an ephemeral app or should be hidden due to
// policy.