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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 2254833003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index bf193707b0b9b4168b256dcb52536ee214fabef8..5684ebdfb3bc75bcc697ff2960c616f6107bc38b 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -397,7 +397,7 @@ void BluetoothDevice::ClearAdvertisementData() {
void BluetoothDevice::DidConnectGatt() {
for (const auto& callback : create_gatt_connection_success_callbacks_) {
callback.Run(
- base::WrapUnique(new BluetoothGattConnection(adapter_, GetAddress())));
+ base::MakeUnique<BluetoothGattConnection>(adapter_, GetAddress()));
}
create_gatt_connection_success_callbacks_.clear();
create_gatt_connection_error_callbacks_.clear();
« no previous file with comments | « device/bluetooth/bluetooth_advertisement_unittest.cc ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698