| Index: content/browser/browser_child_process_host_impl.cc
|
| diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
|
| index b48bc2058f2265498c680e049058f37382453a77..e297d7787da2cfa924f8b801c1998a62084ec6ce 100644
|
| --- a/content/browser/browser_child_process_host_impl.cc
|
| +++ b/content/browser/browser_child_process_host_impl.cc
|
| @@ -402,12 +402,22 @@ void BrowserChildProcessHostImpl::OnProcessLaunched() {
|
| DCHECK(process.IsValid());
|
|
|
| #if defined(OS_WIN)
|
| + // TODO(jam): enable on POSIX
|
| if (base::CommandLine::ForCurrentProcess()->HasSwitch("use-new-edk")) {
|
| - HANDLE client_pipe = mojo::embedder::ChildProcessLaunched(process.Handle());
|
| + mojo::embedder::ScopedPlatformHandle client_pipe =
|
| + mojo::embedder::ChildProcessLaunched(process.Handle());
|
| Send(new ChildProcessMsg_SetMojoParentPipeHandle(
|
| - IPC::GetFileHandleForProcess(client_pipe, process.Handle(), true)));
|
| + IPC::GetFileHandleForProcess(
|
| +#if defined(OS_WIN)
|
| + client_pipe.release().handle,
|
| +#else
|
| + client_pipe.release().fd,
|
| +#endif
|
| + process.Handle(), true)));
|
| }
|
| +#endif
|
|
|
| +#if defined(OS_WIN)
|
| // Start a WaitableEventWatcher that will invoke OnProcessExitedEarly if the
|
| // child process exits. This watcher is stopped once the IPC channel is
|
| // connected and the exit of the child process is detecter by an error on the
|
|
|