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

Unified Diff: mojo/runner/host/child_process_host.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: mojo/runner/host/child_process_host.cc
diff --git a/mojo/runner/host/child_process_host.cc b/mojo/runner/host/child_process_host.cc
index ee92141f11b116dfb66a9215ae4f6b76a6fbd839..cb10693311b07fe10d8869469b529fb5a2fce377 100644
--- a/mojo/runner/host/child_process_host.cc
+++ b/mojo/runner/host/child_process_host.cc
@@ -40,6 +40,7 @@ ChildProcessHost::ChildProcessHost(base::TaskRunner* launch_process_runner,
start_child_process_event_(false, false),
weak_factory_(this) {
#if defined(OS_WIN)
+ // TODO(jam): enable on POSIX
if (base::CommandLine::ForCurrentProcess()->HasSwitch("use-new-edk"))
serializer_platform_channel_pair_.reset(new edk::PlatformChannelPair(true));
#endif
@@ -210,9 +211,14 @@ void ChildProcessHost::DoLaunch() {
serializer_platform_channel_pair_->ChildProcessLaunched();
mojo::embedder::ChildProcessLaunched(
child_process_.Handle(),
- serializer_platform_channel_pair_->PassServerHandle()
- .release()
- .handle);
+ mojo::embedder::ScopedPlatformHandle(mojo::embedder::PlatformHandle(
+ serializer_platform_channel_pair_->PassServerHandle().release().
+#if defined(OS_WIN)
+ handle
+#else
+ fd
+#endif
+ )));
}
#endif
}

Powered by Google App Engine
This is Rietveld 408576698