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

Unified Diff: mojo/shell/application_manager_apptest_driver.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/shell/application_manager_apptest.cc ('k') | mojo/shell/application_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_manager_apptest_driver.cc
diff --git a/mojo/shell/application_manager_apptest_driver.cc b/mojo/shell/application_manager_apptest_driver.cc
index 1bbc794d591251751ed9ddf06c55b22593e3ac70..aa1b2af3257af59ab240c6954651b099840c52a9 100644
--- a/mojo/shell/application_manager_apptest_driver.cc
+++ b/mojo/shell/application_manager_apptest_driver.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "base/at_exit.h"
#include "base/base_paths.h"
#include "base/base_switches.h"
@@ -76,7 +78,7 @@ class TargetApplicationDelegate : public mojo::ApplicationDelegate,
platform_channel_pair.PassServerHandle();
mojo::ScopedMessagePipeHandle handle(mojo::embedder::CreateChannel(
- platform_channel.Pass(),
+ std::move(platform_channel),
base::Bind(&TargetApplicationDelegate::DidCreateChannel,
weak_factory_.GetWeakPtr()),
base::ThreadTaskRunnerHandle::Get()));
@@ -98,11 +100,11 @@ class TargetApplicationDelegate : public mojo::ApplicationDelegate,
mojo::Array<mojo::String> test_interfaces;
test_interfaces.push_back(
mojo::shell::test::mojom::CreateInstanceForHandleTest::Name_);
- filter->filter.insert("mojo:mojo_shell_apptests", test_interfaces.Pass());
+ filter->filter.insert("mojo:mojo_shell_apptests",
+ std::move(test_interfaces));
application_manager->CreateInstanceForHandle(
mojo::ScopedHandle(mojo::Handle(handle.release().value())),
- "exe:application_manager_apptest_target",
- filter.Pass());
+ "exe:application_manager_apptest_target", std::move(filter));
// Put the other end on the command line used to launch the target.
platform_channel_pair.PrepareToPassClientHandleToChildProcess(
&child_command_line, &handle_passing_info);
@@ -134,7 +136,7 @@ class TargetApplicationDelegate : public mojo::ApplicationDelegate,
// mojo::InterfaceFactory<Driver>:
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<Driver> request) override {
- bindings_.AddBinding(this, request.Pass());
+ bindings_.AddBinding(this, std::move(request));
}
// Driver:
« no previous file with comments | « mojo/shell/application_manager_apptest.cc ('k') | mojo/shell/application_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698