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

Unified Diff: chrome/browser/chromeos/arc/gpu_arc_video_service_host.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 | « no previous file | components/arc/arc_bridge_bootstrap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
diff --git a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
index 1958a338a09758b0f95f9919923d221c51554aa4..2588717d0b53242cf70b820ec7de6505a1eeee7d 100644
--- a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
+++ b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
@@ -13,6 +13,7 @@
#include "content/public/browser/gpu_service_registry.h"
#include "content/public/common/service_registry.h"
#include "mojo/edk/embedder/embedder.h"
+#include "mojo/edk/embedder/platform_channel_pair.h"
namespace {
@@ -58,12 +59,13 @@ void GpuArcVideoServiceHost::OnRequestArcVideoAcceleratorChannel(
// Hardcode pid 0 since it is unused in mojo.
const base::ProcessHandle kUnusedChildProcessHandle =
base::kNullProcessHandle;
- mojo::edk::ScopedPlatformHandle child_platform_handle =
- mojo::edk::ChildProcessLaunched(kUnusedChildProcessHandle);
+ mojo::edk::PlatformChannelPair channel_pair;
+ mojo::edk::ChildProcessLaunched(kUnusedChildProcessHandle,
+ channel_pair.PassServerHandle());
MojoHandle wrapped_handle;
MojoResult wrap_result = mojo::edk::CreatePlatformHandleWrapper(
- std::move(child_platform_handle), &wrapped_handle);
+ channel_pair.PassClientHandle(), &wrapped_handle);
if (wrap_result != MOJO_RESULT_OK) {
LOG(ERROR) << "Pipe failed to wrap handles. Closing: " << wrap_result;
callback.Run(mojo::ScopedHandle(), std::string());
« no previous file with comments | « no previous file | components/arc/arc_bridge_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698