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

Unified Diff: ipc/ipc_test_base.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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 | « ipc/ipc_sync_channel.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_base.cc
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index f700856f244c7e5124a4af1aff054e47ea32c235..6243138cd4b6cb08c4d3c3993c4308f61b9d39e1 100644
--- a/ipc/ipc_test_base.cc
+++ b/ipc/ipc_test_base.cc
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "build/build_config.h"
-
-#include "base/single_thread_task_runner.h"
#include "ipc/ipc_test_base.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/process/kill.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "ipc/ipc_descriptors.h"
#if defined(OS_POSIX)
@@ -48,7 +49,7 @@ void IPCTestBase::InitWithCustomMessageLoop(
DCHECK(!message_loop_);
test_client_name_ = test_client_name;
- message_loop_ = message_loop.Pass();
+ message_loop_ = std::move(message_loop);
}
void IPCTestBase::CreateChannel(IPC::Listener* listener) {
@@ -61,11 +62,11 @@ bool IPCTestBase::ConnectChannel() {
}
scoped_ptr<IPC::Channel> IPCTestBase::ReleaseChannel() {
- return channel_.Pass();
+ return std::move(channel_);
}
void IPCTestBase::SetChannel(scoped_ptr<IPC::Channel> channel) {
- channel_ = channel.Pass();
+ channel_ = std::move(channel);
}
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698