Index: mojo/edk/embedder/embedder.cc |
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc |
index f9b5c9daaeb72664ea0190700262dd2a16ae060a..e09e671c7ccf4a9f8b0a48f1482062d0a3ecb12f 100644 |
--- a/mojo/edk/embedder/embedder.cc |
+++ b/mojo/edk/embedder/embedder.cc |
@@ -97,15 +97,9 @@ void PreInitializeChildProcess() { |
} |
ScopedPlatformHandle ChildProcessLaunched(base::ProcessHandle child_process) { |
-#if defined(OS_WIN) |
PlatformChannelPair token_channel; |
new ChildBrokerHost(child_process, token_channel.PassServerHandle()); |
return token_channel.PassClientHandle(); |
-#else |
- // TODO(jam): create this for POSIX. Need to implement channel reading first |
- // so we don't leak handles. |
- return ScopedPlatformHandle(); |
-#endif |
} |
void ChildProcessLaunched(base::ProcessHandle child_process, |
@@ -201,9 +195,11 @@ void ShutdownIPCSupportAndWaitForNoChannels() { |
ScopedMessagePipeHandle CreateMessagePipe( |
ScopedPlatformHandle platform_handle) { |
+ MojoCreateMessagePipeOptions options = { |
+ static_cast<uint32_t>(sizeof(MojoCreateMessagePipeOptions)), |
+ MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_TRANSFERABLE}; |
scoped_refptr<MessagePipeDispatcher> dispatcher = |
- MessagePipeDispatcher::Create( |
- MessagePipeDispatcher::kDefaultCreateOptions); |
+ MessagePipeDispatcher::Create(options); |
ScopedMessagePipeHandle rv( |
MessagePipeHandle(internal::g_core->AddDispatcher(dispatcher))); |