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

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

Issue 599333002: ChannelMojo: Handle when ChannelMojo outlives ChannelMojoHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 3 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 | « no previous file | ipc/mojo/ipc_channel_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 09772d9904a282818e1e5880f21298156cb5a8ff..9e46f2276abb407dbfdf3d0364f90284256dfecc 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -675,10 +675,11 @@ scoped_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
}
- return IPC::ChannelProxy::Create(IPC::ChannelMojo::CreateServerFactory(
- channel_mojo_host_.get(), channel_id),
- this,
- runner.get());
+ return IPC::ChannelProxy::Create(
+ IPC::ChannelMojo::CreateServerFactory(
+ channel_mojo_host_->channel_delegate(), channel_id),
+ this,
+ runner.get());
}
return IPC::ChannelProxy::Create(
@@ -2105,7 +2106,7 @@ void RenderProcessHostImpl::OnProcessLaunched() {
MaybeActivateMojo();
if (channel_mojo_host_)
- channel_mojo_host_->OnClientLaunched(child_process_launcher_->GetHandle());
+ channel_mojo_host_->OnClientLaunched(GetHandle());
while (!queued_messages_.empty()) {
Send(queued_messages_.front());
« no previous file with comments | « no previous file | ipc/mojo/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698