Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1246)

Unified Diff: extensions/common/extension_set.cc

Issue 218683011: Remove ExtensionService::[Get|Is]InstalledApp() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ces_get_installed_ext_by_url
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_set.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_set.cc
diff --git a/extensions/common/extension_set.cc b/extensions/common/extension_set.cc
index 77d4491e9647b3b9f223e08a13bba9815aa83ea0..c4c15d4e1f2bc3b8f291f590f7be0b109a21583e 100644
--- a/extensions/common/extension_set.cc
+++ b/extensions/common/extension_set.cc
@@ -89,6 +89,11 @@ const Extension* ExtensionSet::GetExtensionOrAppByURL(const GURL& url) const {
return GetHostedAppByURL(url);
}
+const Extension* ExtensionSet::GetAppByURL(const GURL& url) const {
+ const Extension* extension = GetExtensionOrAppByURL(url);
+ return (extension && extension->is_app()) ? extension : NULL;
+}
+
const Extension* ExtensionSet::GetHostedAppByURL(const GURL& url) const {
for (ExtensionMap::const_iterator iter = extensions_.begin();
iter != extensions_.end(); ++iter) {
« no previous file with comments | « extensions/common/extension_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698