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

Unified Diff: components/proximity_auth/bluetooth_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/bluetooth_connection.cc
diff --git a/components/proximity_auth/bluetooth_connection.cc b/components/proximity_auth/bluetooth_connection.cc
index 7adf8efad3dafab238a40bcf4192c02097b2f7ce..f0cce29974e33fa7127fc889f86f7842b21586d8 100644
--- a/components/proximity_auth/bluetooth_connection.cc
+++ b/components/proximity_auth/bluetooth_connection.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/bluetooth_connection.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/numerics/safe_conversions.h"
@@ -80,7 +82,7 @@ void BluetoothConnection::SendMessageImpl(scoped_ptr<WireMessage> message) {
memcpy(buffer->data(), serialized_message.c_str(), message_length);
// Send it.
- pending_message_ = message.Pass();
+ pending_message_ = std::move(message);
base::WeakPtr<BluetoothConnection> weak_this = weak_ptr_factory_.GetWeakPtr();
socket_->Send(buffer,
message_length,

Powered by Google App Engine
This is Rietveld 408576698