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

Unified Diff: remoting/host/native_messaging/native_messaging_reader_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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: remoting/host/native_messaging/native_messaging_reader_unittest.cc
diff --git a/remoting/host/native_messaging/native_messaging_reader_unittest.cc b/remoting/host/native_messaging/native_messaging_reader_unittest.cc
index 4a22ec827cd5b1ff56adf7997d3d375a7f3d0476..fcc9f8beca726d5083e2c2b4fc4efbeff68cb430 100644
--- a/remoting/host/native_messaging/native_messaging_reader_unittest.cc
+++ b/remoting/host/native_messaging/native_messaging_reader_unittest.cc
@@ -55,7 +55,7 @@ NativeMessagingReaderTest::~NativeMessagingReaderTest() {}
void NativeMessagingReaderTest::SetUp() {
ASSERT_TRUE(MakePipe(&read_file_, &write_file_));
- reader_.reset(new NativeMessagingReader(read_file_.Pass()));
+ reader_.reset(new NativeMessagingReader(std::move(read_file_)));
}
void NativeMessagingReaderTest::Run() {
@@ -71,7 +71,7 @@ void NativeMessagingReaderTest::Run() {
}
void NativeMessagingReaderTest::OnMessage(scoped_ptr<base::Value> message) {
- message_ = message.Pass();
+ message_ = std::move(message);
}
void NativeMessagingReaderTest::WriteMessage(const std::string& message) {

Powered by Google App Engine
This is Rietveld 408576698