summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_util.h
diff options
context:
space:
mode:
authorbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 09:20:47 +0000
committerbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 09:20:47 +0000
commitf5ea096be691b901a607cb6af1e862b844ef7913 (patch)
tree54cc5a71e67397f548ad657a89c605513f2c02ef /chrome/browser/extensions/extension_util.h
parent40f169221e9c702ba4689ceb71bd9ce2d9845638 (diff)
downloadchromium_src-f5ea096be691b901a607cb6af1e862b844ef7913.zip
chromium_src-f5ea096be691b901a607cb6af1e862b844ef7913.tar.gz
chromium_src-f5ea096be691b901a607cb6af1e862b844ef7913.tar.bz2
Stop showing disabled apps in the app launcher and shelf greyed out.
These apps can still be run, they just need to go through an enable flow. BUG=321502, 286479 TEST=Check that apps which have been updated in the store to have new permissions can be launched properly, and are not shown greyed out. Review URL: https://codereview.chromium.org/81333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_util.h')
-rw-r--r--chrome/browser/extensions/extension_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_util.h b/chrome/browser/extensions/extension_util.h
index fb9d74e..c61f535 100644
--- a/chrome/browser/extensions/extension_util.h
+++ b/chrome/browser/extensions/extension_util.h
@@ -44,6 +44,15 @@ void SetAllowFileAccess(const extensions::Extension* extension,
ExtensionService* service,
bool allow);
+// Whether an app can be launched or not. Apps may require enabling first,
+// but they will still be launchable.
+bool IsAppLaunchable(const std::string& extension_id,
+ const ExtensionService* service);
+
+// Whether an app can be launched without being enabled first.
+bool IsAppLaunchableWithoutEnabling(const std::string& extension_id,
+ const ExtensionService* service);
+
} // namespace extension_util
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_