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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 220053002: Remove ExtensionService::GetInstalledExtensionByUrl(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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 | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index adae9a5934173fc5ed0d161bfea4b150c597e616..e897e265e86d16b8b89ec7e9f774ad9fc88aefab 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -268,13 +268,9 @@ bool ExtensionService::OnExternalExtensionUpdateUrlFound(
return true;
}
-const Extension* ExtensionService::GetInstalledExtensionByUrl(
- const GURL& url) const {
- return registry_->enabled_extensions().GetExtensionOrAppByURL(url);
-}
-
const Extension* ExtensionService::GetInstalledApp(const GURL& url) const {
- const Extension* extension = GetInstalledExtensionByUrl(url);
+ const Extension* extension =
+ registry_->enabled_extensions().GetExtensionOrAppByURL(url);
return (extension && extension->is_app()) ? extension : NULL;
}
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698