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

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

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: id Created 9 years 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
Index: chrome/browser/extensions/extension_webstore_private_api.cc
diff --git a/chrome/browser/extensions/extension_webstore_private_api.cc b/chrome/browser/extensions/extension_webstore_private_api.cc
index fd6f307d44b4ee7c37d4c7c2d3d861cf083e24b2..b38703c7146c940b5505db96e4b425a78d0e1d14 100644
--- a/chrome/browser/extensions/extension_webstore_private_api.cc
+++ b/chrome/browser/extensions/extension_webstore_private_api.cc
@@ -72,7 +72,8 @@ bool IsWebStoreURL(Profile* profile, const GURL& url) {
NOTREACHED();
return false;
}
- return (service->GetExtensionByWebExtent(url) == store);
+ return (service->extensions()->GetHostedAppByURL(ExtensionURLInfo(url)) ==
+ store);
}
// Whitelists extension IDs for use by webstorePrivate.silentlyInstall.
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.cc ('k') | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698