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

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: 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/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 752fcbb16b6a00ca24a3d494e1605dbfbd954fa2..cce528fc62a1082da77f9a0255865f06ccaf4124 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -101,8 +101,8 @@ RenderViewHostDelegateViewHelper::MaybeCreateBackgroundContents(
// can create BackgroundContents. We don't have to check for background
// permission as that is checked in RenderMessageFilter when the CreateWindow
// message is processed.
- const Extension* extension =
- extensions_service->GetExtensionByWebExtent(opener_url);
+ const Extension* extension = extensions_service->extensions()->GetByWebExtent(
+ ExtensionURLInfo(opener_url));
if (!extension)
return NULL;
@@ -548,8 +548,8 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
ExtensionService* service = profile->GetExtensionService();
if (service) {
- const Extension* extension =
- service->GetExtensionByURL(rvh->site_instance()->site());
+ const Extension* extension = service->extensions()->GetByURL(
+ ExtensionURLInfo(rvh->site_instance()->site()));
extension_webkit_preferences::SetPreferences(
extension, rvh->delegate()->GetRenderViewType(), &web_prefs);
}

Powered by Google App Engine
This is Rietveld 408576698