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

Unified Diff: components/proximity_auth/fake_connection.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/proximity_auth/fake_connection.cc
diff --git a/components/proximity_auth/fake_connection.cc b/components/proximity_auth/fake_connection.cc
index 1c9261de6d0a9eb02511dc6bf7996df3be74503a..d7219665ac6ed2f8ef16dddb386d9c68e33be560 100644
--- a/components/proximity_auth/fake_connection.cc
+++ b/components/proximity_auth/fake_connection.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/fake_connection.h"
+#include <utility>
+
#include "components/proximity_auth/wire_message.h"
namespace proximity_auth {
@@ -29,7 +31,7 @@ void FakeConnection::FinishSendingMessageWithSuccess(bool success) {
CHECK(current_message_);
// Capture a copy of the message, as OnDidSendMessage() might reentrantly
// call SendMessage().
- scoped_ptr<WireMessage> sent_message = current_message_.Pass();
+ scoped_ptr<WireMessage> sent_message = std::move(current_message_);
OnDidSendMessage(*sent_message, success);
}
@@ -41,7 +43,7 @@ void FakeConnection::ReceiveMessageWithPayload(const std::string& payload) {
void FakeConnection::SendMessageImpl(scoped_ptr<WireMessage> message) {
CHECK(!current_message_);
- current_message_ = message.Pass();
+ current_message_ = std::move(message);
}
scoped_ptr<WireMessage> FakeConnection::DeserializeWireMessage(
« no previous file with comments | « components/proximity_auth/device_to_device_secure_context.cc ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698