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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_connection.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 months 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 77a65b66b241b2e4abe44e22849156c7b160cc41..a14db7f23e13d50b42d11ed8153e6d830b293667 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
@@ -165,7 +165,7 @@ void BluetoothLowEnergyConnection::SetTaskRunnerForTesting(
}
void BluetoothLowEnergyConnection::SendMessageImpl(
- scoped_ptr<WireMessage> message) {
+ std::unique_ptr<WireMessage> message) {
PA_LOG(INFO) << "Sending message " << message->Serialize();
std::string serialized_msg = message->Serialize();
@@ -339,7 +339,7 @@ void BluetoothLowEnergyConnection::OnCreateGattConnectionError(
}
void BluetoothLowEnergyConnection::OnGattConnectionCreated(
- scoped_ptr<device::BluetoothGattConnection> gatt_connection) {
+ std::unique_ptr<device::BluetoothGattConnection> gatt_connection) {
DCHECK(sub_status() == SubStatus::WAITING_GATT_CONNECTION);
PA_LOG(INFO) << "GATT connection with " << gatt_connection->GetDeviceAddress()
<< " created.";
@@ -434,7 +434,7 @@ void BluetoothLowEnergyConnection::OnNotifySessionError(
}
void BluetoothLowEnergyConnection::OnNotifySessionStarted(
- scoped_ptr<BluetoothGattNotifySession> notify_session) {
+ std::unique_ptr<BluetoothGattNotifySession> notify_session) {
DCHECK(sub_status() == SubStatus::WAITING_NOTIFY_SESSION);
PA_LOG(INFO) << "Notification session started "
<< notify_session->GetCharacteristicIdentifier();

Powered by Google App Engine
This is Rietveld 408576698