Index: components/arc/arc_bridge_bootstrap.cc |
diff --git a/components/arc/arc_bridge_bootstrap.cc b/components/arc/arc_bridge_bootstrap.cc |
index 58118835cc6e19c2607cf83840651154075fbbf3..d0eed62488867786d4bb731f9c421e985462070b 100644 |
--- a/components/arc/arc_bridge_bootstrap.cc |
+++ b/components/arc/arc_bridge_bootstrap.cc |
@@ -253,11 +253,13 @@ base::ScopedFD ArcBridgeBootstrapImpl::AcceptInstanceConnection( |
// Hardcode pid 0 since it is unused in mojo. |
const base::ProcessHandle kUnusedChildProcessHandle = 0; |
- mojo::edk::ScopedPlatformHandle child_handle = |
- mojo::edk::ChildProcessLaunched(kUnusedChildProcessHandle); |
+ mojo::edk::PlatformChannelPair channel_pair; |
+ mojo::edk::ChildProcessLaunched(kUnusedChildProcessHandle, |
+ channel_pair.PassServerHandle()); |
mojo::edk::ScopedPlatformHandleVectorPtr handles( |
- new mojo::edk::PlatformHandleVector{child_handle.release()}); |
+ new mojo::edk::PlatformHandleVector{ |
+ channel_pair.PassClientHandle().release()}); |
struct iovec iov = {const_cast<char*>(""), 1}; |
ssize_t result = mojo::edk::PlatformChannelSendmsgWithHandles( |