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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_win.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_remote_gatt_characteristic_win.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
index 1ef3129df4c4f0b9db73c4fc7c68edef2b3aa689..9c60f5cdc6ee003822d0e8c99edcc95e721faa3e 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
@@ -447,8 +447,8 @@ void BluetoothRemoteGattCharacteristicWin::GattEventRegistrationCallback(
if (SUCCEEDED(hr)) {
gatt_event_handle_ = event_handle;
for (const auto& callback : callbacks) {
- callback.first.Run(base::WrapUnique(
- new BluetoothGattNotifySession(weak_ptr_factory_.GetWeakPtr())));
+ callback.first.Run(base::MakeUnique<BluetoothGattNotifySession>(
+ weak_ptr_factory_.GetWeakPtr()));
}
} else {
for (const auto& callback : callbacks)
« no previous file with comments | « device/bluetooth/bluetooth_device.cc ('k') | device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698