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

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: origins 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 d76da497bd64409ca37f601101011c5636367039..fb4bac0f266fee988752815fcf1b64ddf83d82da 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()->GetByWebExtent(ExtensionURLInfo(url)) ==
+ store);
}
// Whitelists extension IDs for use by webstorePrivate.silentlyInstall.

Powered by Google App Engine
This is Rietveld 408576698