Index: content/test/render_thread_impl_browser_test_ipc_helper.cc |
diff --git a/content/test/render_thread_impl_browser_test_ipc_helper.cc b/content/test/render_thread_impl_browser_test_ipc_helper.cc |
index 52cb151042f57073b3fc1cc8f3cd4a050207f14f..8c924d040991c66f0f058a6c5aa29cd68e3cf4bb 100644 |
--- a/content/test/render_thread_impl_browser_test_ipc_helper.cc |
+++ b/content/test/render_thread_impl_browser_test_ipc_helper.cc |
@@ -38,8 +38,9 @@ void RenderThreadImplBrowserIPCTestHelper::SetupIpcThread() { |
void RenderThreadImplBrowserIPCTestHelper::SetupMojo() { |
InitializeMojo(); |
+ std::string child_token = mojo::edk::GenerateRandomToken(); |
ipc_support_.reset(new IPC::ScopedIPCSupport(ipc_thread_->task_runner())); |
- mojo_application_host_.reset(new MojoApplicationHost()); |
+ mojo_application_host_.reset(new MojoApplicationHost(child_token)); |
mojo_application_token_ = mojo_application_host_->GetToken(); |
mojo_ipc_token_ = mojo::edk::GenerateRandomToken(); |
@@ -47,7 +48,7 @@ void RenderThreadImplBrowserIPCTestHelper::SetupMojo() { |
mojo::MessagePipe pipe; |
channel_ = IPC::ChannelProxy::Create( |
IPC::ChannelMojo::CreateServerFactory( |
- mojo::edk::CreateParentMessagePipe(mojo_ipc_token_)), |
+ mojo::edk::CreateParentMessagePipe(mojo_ipc_token_, child_token)), |
dummy_listener_.get(), ipc_thread_->task_runner()); |
} |