| 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 33fff3305921282a37bfd598ebc8c4cb6721f5a8..3dc8816b2f3eb3a5de6d7c669d4f064f26d2a028 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -163,6 +163,7 @@
|
| #include "gpu/command_buffer/service/gpu_switches.h"
|
| #include "ipc/attachment_broker.h"
|
| #include "ipc/attachment_broker_privileged.h"
|
| +#include "ipc/ipc.mojom.h"
|
| #include "ipc/ipc_channel.h"
|
| #include "ipc/ipc_channel_mojo.h"
|
| #include "ipc/ipc_logging.h"
|
| @@ -749,7 +750,7 @@ bool RenderProcessHostImpl::Init() {
|
| channel_id,
|
| BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO)
|
| ->task_runner(),
|
| - mojo_channel_token_,
|
| + std::string(),
|
| mojo_child_connection_->shell_client_token())));
|
|
|
| base::Thread::Options options;
|
| @@ -810,9 +811,9 @@ std::unique_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy(
|
| const std::string& channel_id) {
|
| scoped_refptr<base::SingleThreadTaskRunner> runner =
|
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
|
| - mojo_channel_token_ = mojo::edk::GenerateRandomToken();
|
| - mojo::ScopedMessagePipeHandle handle =
|
| - mojo::edk::CreateParentMessagePipe(mojo_channel_token_, child_token_);
|
| + IPC::mojom::BootstrapPtr bootstrap;
|
| + mojo_child_connection_->connection()->GetInterface(&bootstrap);
|
| + mojo::ScopedMessagePipeHandle handle = bootstrap.PassInterface().PassHandle();
|
|
|
| // Do NOT expand ifdef or run time condition checks here! Synchronous
|
| // IPCs from browser process are banned. It is only narrowly allowed
|
| @@ -1338,10 +1339,6 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
|
|
|
| AppendCompositorCommandLineFlags(command_line);
|
|
|
| - if (!mojo_channel_token_.empty()) {
|
| - command_line->AppendSwitchASCII(switches::kMojoChannelToken,
|
| - mojo_channel_token_);
|
| - }
|
| command_line->AppendSwitchASCII(switches::kMojoApplicationChannelToken,
|
| mojo_child_connection_->shell_client_token());
|
| }
|
|
|