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

Unified Diff: content/browser/renderer_host/browser_render_process_host.cc

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser tests Created 9 years, 8 months 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
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698