| 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 c9a61c68492937ed981a695905e6b20752b9b118..e3d94549b8677309da33c7891106e3830fe7e9ba 100644
|
| --- a/content/browser/browser_child_process_host_impl.cc
|
| +++ b/content/browser/browser_child_process_host_impl.cc
|
| @@ -22,6 +22,7 @@
|
| #include "content/browser/profiler_message_filter.h"
|
| #include "content/browser/tracing/trace_message_filter.h"
|
| #include "content/common/child_process_host_impl.h"
|
| +#include "content/common/child_process_messages.h"
|
| #include "content/public/browser/browser_child_process_host_delegate.h"
|
| #include "content/public/browser/browser_child_process_observer.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -32,6 +33,7 @@
|
| #include "content/public/common/result_codes.h"
|
| #include "ipc/attachment_broker.h"
|
| #include "ipc/attachment_broker_privileged.h"
|
| +#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
|
|
|
| #if defined(OS_MACOSX)
|
| #include "content/browser/mach_broker_mac.h"
|
| @@ -406,6 +408,12 @@ void BrowserChildProcessHostImpl::OnProcessLaunched() {
|
| DCHECK(process.IsValid());
|
|
|
| #if defined(OS_WIN)
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch("use-new-edk")) {
|
| + HANDLE client_pipe = mojo::embedder::ChildProcessLaunched(process.Handle());
|
| + Send(new ChildProcessMsg_SetMojoParentPipeHandle(
|
| + IPC::GetFileHandleForProcess(client_pipe, process.Handle(), true)));
|
| + }
|
| +
|
| // 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
|
|
|