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))); |
} |