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

Unified Diff: chrome/browser/tab_contents/tab_util.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/tab_contents/tab_util.cc
diff --git a/chrome/browser/tab_contents/tab_util.cc b/chrome/browser/tab_contents/tab_util.cc
index 9cfa82ed5e71c4d951d5f0913776ce5d4eebb2e8..58b7fb7d9dab8c47093f398031c6b45df4bdc7e0 100644
--- a/chrome/browser/tab_contents/tab_util.cc
+++ b/chrome/browser/tab_contents/tab_util.cc
@@ -32,7 +32,8 @@ SiteInstance* GetSiteInstanceForNewTab(TabContents* source_contents,
// as part of creating the tab.
ExtensionService* service = profile->GetExtensionService();
if (ChromeWebUIFactory::GetInstance()->UseWebUIForURL(profile, url) ||
- (service && service->GetExtensionByWebExtent(url))) {
+ (service &&
+ service->extensions()->GetHostedAppByURL(ExtensionURLInfo(url)))) {
return SiteInstance::CreateSiteInstanceForURL(profile, url);
}

Powered by Google App Engine
This is Rietveld 408576698