Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: content/browser/browser_child_process_host_impl.cc

Issue 1465183005: Rename mojo::TokenSerializer to mojo::Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win component Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698