| 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);
|
| }
|
|
|