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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.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/render_view_host_delegate_helper.cc
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index 0946340f43863d7b51eda2d5ce7a432136c8a61a..a3f89c6abada884f21fd9aac66f6755b458b1be8 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -102,7 +102,8 @@ RenderViewHostDelegateViewHelper::MaybeCreateBackgroundContents(
// permission as that is checked in RenderMessageFilter when the CreateWindow
// message is processed.
const Extension* extension =
- extensions_service->GetExtensionByWebExtent(opener_url);
+ extensions_service->extensions()->GetHostedAppByURL(
+ ExtensionURLInfo(opener_url));
if (!extension)
return NULL;
@@ -551,8 +552,8 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
ExtensionService* service = profile->GetExtensionService();
if (service) {
- const Extension* extension =
- service->GetExtensionByURL(rvh->site_instance()->site());
+ const Extension* extension = service->extensions()->GetByID(
+ rvh->site_instance()->site().host());
extension_webkit_preferences::SetPreferences(
extension, rvh->delegate()->GetRenderViewType(), &web_prefs);
}
« no previous file with comments | « chrome/browser/renderer_host/transfer_navigation_resource_handler.cc ('k') | chrome/browser/tab_contents/tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698