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