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

Unified Diff: mojo/runner/host/out_of_process_native_runner.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/in_process_native_runner.cc ('k') | mojo/runner/task_runners.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/host/out_of_process_native_runner.cc
diff --git a/mojo/runner/host/out_of_process_native_runner.cc b/mojo/runner/host/out_of_process_native_runner.cc
index 7e82a51eb6319c17bc6537956c7935ffd5d23958..5c60e0543d35cae413f20143e4d54d27bd5b7967 100644
--- a/mojo/runner/host/out_of_process_native_runner.cc
+++ b/mojo/runner/host/out_of_process_native_runner.cc
@@ -4,6 +4,8 @@
#include "mojo/runner/host/out_of_process_native_runner.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/files/file_util.h"
@@ -39,7 +41,7 @@ void OutOfProcessNativeRunner::Start(
child_process_host_->Start();
child_process_host_->StartApp(
- application_request.Pass(),
+ std::move(application_request),
base::Bind(&OutOfProcessNativeRunner::AppCompleted,
base::Unretained(this)));
}
@@ -47,9 +49,9 @@ void OutOfProcessNativeRunner::Start(
void OutOfProcessNativeRunner::InitHost(
ScopedHandle channel,
InterfaceRequest<Application> application_request) {
- child_process_host_.reset(new ChildProcessHost(channel.Pass()));
+ child_process_host_.reset(new ChildProcessHost(std::move(channel)));
child_process_host_->StartApp(
- application_request.Pass(),
+ std::move(application_request),
base::Bind(&OutOfProcessNativeRunner::AppCompleted,
base::Unretained(this)));
}
« no previous file with comments | « mojo/runner/host/in_process_native_runner.cc ('k') | mojo/runner/task_runners.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698