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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_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/ble/bluetooth_low_energy_connection.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
index a5ab4bb696eb77ebdfd830909b36699f94b029f8..13992be8c8366327c0879131d18ca0d9ea7f2b11 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/ble/bluetooth_low_energy_connection.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
@@ -343,7 +345,7 @@ void BluetoothLowEnergyConnection::OnGattConnectionCreated(
// Informing |bluetooth_trottler_| a new connection was established.
bluetooth_throttler_->OnConnection(this);
- gatt_connection_ = gatt_connection.Pass();
+ gatt_connection_ = std::move(gatt_connection);
SetSubStatus(SubStatus::WAITING_CHARACTERISTICS);
characteristic_finder_.reset(CreateCharacteristicsFinder(
base::Bind(&BluetoothLowEnergyConnection::OnCharacteristicsFound,
@@ -436,7 +438,7 @@ void BluetoothLowEnergyConnection::OnNotifySessionStarted(
PrintTimeElapsed();
SetSubStatus(SubStatus::NOTIFY_SESSION_READY);
- notify_session_ = notify_session.Pass();
+ notify_session_ = std::move(notify_session);
SendInviteToConnectSignal();
}

Powered by Google App Engine
This is Rietveld 408576698