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

Unified Diff: mojo/runner/host/child_process_host.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « mojo/runner/host/child_process.cc ('k') | mojo/runner/host/in_process_native_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2d0ca392d2fdf61b947f1eb6db6a00c65aed6471..37bda9238f4fd44403a7cdb77246560bdc15415a 100644
--- a/mojo/runner/host/child_process_host.cc
+++ b/mojo/runner/host/child_process_host.cc
@@ -4,6 +4,8 @@
#include "mojo/runner/host/child_process_host.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
@@ -56,7 +58,7 @@ ChildProcessHost::ChildProcessHost(ScopedHandle channel)
weak_factory_(this) {
CHECK(channel.is_valid());
ScopedMessagePipeHandle handle(MessagePipeHandle(channel.release().value()));
- controller_.Bind(InterfacePtrInfo<ChildController>(handle.Pass(), 0u));
+ controller_.Bind(InterfacePtrInfo<ChildController>(std::move(handle), 0u));
}
ChildProcessHost::~ChildProcessHost() {
@@ -84,7 +86,7 @@ void ChildProcessHost::Start() {
}
controller_.Bind(
- InterfacePtrInfo<ChildController>(child_message_pipe_.Pass(), 0u));
+ InterfacePtrInfo<ChildController>(std::move(child_message_pipe_), 0u));
launch_process_runner_->PostTaskAndReply(
FROM_HERE,
@@ -115,7 +117,7 @@ void ChildProcessHost::StartApp(
on_app_complete_ = on_app_complete;
controller_->StartApp(
- application_request.Pass(),
+ std::move(application_request),
base::Bind(&ChildProcessHost::AppCompleted, weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « mojo/runner/host/child_process.cc ('k') | mojo/runner/host/in_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698