| Index: content/browser/renderer_host/browser_render_process_host.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/browser_render_process_host.cc (revision 82593)
|
| +++ content/browser/renderer_host/browser_render_process_host.cc (working copy)
|
| @@ -248,9 +248,9 @@
|
| : public ResourceMessageFilter::URLRequestContextSelector {
|
| public:
|
| RendererURLRequestContextSelector(Profile* profile,
|
| - const Extension* installed_app)
|
| - : request_context_(profile->GetRequestContextForPossibleApp(
|
| - installed_app)),
|
| + int render_child_id)
|
| + : request_context_(profile->GetRequestContextForRenderProcess(
|
| + render_child_id)),
|
| media_request_context_(profile->GetRequestContextForMedia()) {
|
| }
|
|
|
| @@ -445,18 +445,18 @@
|
|
|
| void BrowserRenderProcessHost::CreateMessageFilters() {
|
| scoped_refptr<RenderMessageFilter> render_message_filter(
|
| - new RenderMessageFilter(id(),
|
| - PluginService::GetInstance(),
|
| - profile(),
|
| - profile()->GetRequestContextForPossibleApp(
|
| - installed_app_),
|
| - widget_helper_));
|
| + new RenderMessageFilter(
|
| + id(),
|
| + PluginService::GetInstance(),
|
| + profile(),
|
| + profile()->GetRequestContextForRenderProcess(id()),
|
| + widget_helper_));
|
| channel_->AddFilter(render_message_filter);
|
|
|
| ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
|
| id(), ChildProcessInfo::RENDER_PROCESS,
|
| &profile()->GetResourceContext(),
|
| - new RendererURLRequestContextSelector(profile(), installed_app_),
|
| + new RendererURLRequestContextSelector(profile(), id()),
|
| g_browser_process->resource_dispatcher_host());
|
|
|
| channel_->AddFilter(resource_message_filter);
|
| @@ -492,7 +492,7 @@
|
|
|
| SocketStreamDispatcherHost* socket_stream_dispatcher_host =
|
| new SocketStreamDispatcherHost(
|
| - new RendererURLRequestContextSelector(profile(), installed_app_));
|
| + new RendererURLRequestContextSelector(profile(), id()));
|
| channel_->AddFilter(socket_stream_dispatcher_host);
|
|
|
| channel_->AddFilter(
|
|
|