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, |