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

Unified Diff: components/arc/arc_bridge_bootstrap.cc

Issue 2015843002: [mojo-edk] Remove ChildProcessLaunched that returns a pipe handle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another fix. Created 4 years, 7 months 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
« no previous file with comments | « chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc ('k') | mojo/edk/embedder/embedder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc ('k') | mojo/edk/embedder/embedder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698