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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc

Issue 1545333002: Convert Pass()→std::move() in //third_party/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
Index: third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc b/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc
index a2781910c2a0ad90cea64406b4dc161965f1e937..c2339e0d784382244e499da1a4a3a1a4402185c5 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc
+++ b/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc
@@ -4,6 +4,8 @@
#include "third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h"
+#include <utility>
+
#include "base/bind.h"
#include "third_party/mojo/src/mojo/edk/system/channel.h"
#include "third_party/mojo/src/mojo/edk/system/channel_endpoint.h"
@@ -74,7 +76,7 @@ void ChannelThread::InitChannelOnIOThread(
// Create and initialize |Channel|.
channel_ = new Channel(platform_support_);
- channel_->Init(RawChannel::Create(platform_handle.Pass()));
+ channel_->Init(RawChannel::Create(std::move(platform_handle)));
// Start the bootstrap endpoint.
// Note: On the "server" (parent process) side, we need not attach/run the
@@ -100,7 +102,7 @@ MultiprocessMessagePipeTestBase::~MultiprocessMessagePipeTestBase() {
}
void MultiprocessMessagePipeTestBase::Init(scoped_refptr<ChannelEndpoint> ep) {
- channel_thread_.Start(helper_.server_platform_handle.Pass(), ep);
+ channel_thread_.Start(std::move(helper_.server_platform_handle), ep);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698