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

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: 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 f4db2099f1ad1f773606ba839270c15138686462..fc6f56402f79f2f7deb729e9604e3bcd97853318 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -275,13 +275,9 @@ bool ExtensionService::OnExternalExtensionUpdateUrlFound(
return true;
}
-const Extension* ExtensionService::GetInstalledExtensionByUrl(
- const GURL& url) const {
- return registry_->enabled_extensions().GetExtensionOrAppByURL(url);
Yoyo Zhou 2014/03/31 21:36:33 Ugh, so this function had a misleading name too!
-}
-
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