| Index: content/browser/utility_process_host_impl.cc
|
| diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
|
| index c025a4a6e9dc53b9b7485163832f4fa553b12338..d59249619b34299e4a5e148e28a8cbe4174a5835 100644
|
| --- a/content/browser/utility_process_host_impl.cc
|
| +++ b/content/browser/utility_process_host_impl.cc
|
| @@ -259,6 +259,8 @@
|
| return false;
|
| }
|
|
|
| + std::string mojo_token = mojo_application_host_->InitWithToken();
|
| +
|
| if (RenderProcessHost::run_renderer_in_process()) {
|
| DCHECK(g_utility_main_thread_factory);
|
| // See comment in RenderProcessHostImpl::Init() for the background on why we
|
| @@ -267,7 +269,7 @@
|
| g_utility_main_thread_factory(InProcessChildThreadParams(
|
| channel_id, BrowserThread::UnsafeGetMessageLoopForThread(
|
| BrowserThread::IO)->task_runner(),
|
| - std::string(), mojo_application_host_->GetToken())));
|
| + mojo::MessagePipeHandle(), mojo_token)));
|
| in_process_thread_->Start();
|
| } else {
|
| const base::CommandLine& browser_command_line =
|
| @@ -346,7 +348,7 @@
|
| #endif
|
|
|
| cmd_line->AppendSwitchASCII(switches::kMojoApplicationChannelToken,
|
| - mojo_application_host_->GetToken());
|
| + mojo_token);
|
|
|
| process_->Launch(
|
| new UtilitySandboxedProcessLauncherDelegate(exposed_dir_,
|
|
|