Index: device/bluetooth/test/bluetooth_test.cc |
diff --git a/device/bluetooth/test/bluetooth_test.cc b/device/bluetooth/test/bluetooth_test.cc |
index f0a2fb0304b29acb07098b6393231314f220437d..d0208ddc7a1b3d44da43621188e7e5267dd95471 100644 |
--- a/device/bluetooth/test/bluetooth_test.cc |
+++ b/device/bluetooth/test/bluetooth_test.cc |
@@ -38,7 +38,7 @@ BluetoothTestBase::~BluetoothTestBase() { |
void BluetoothTestBase::StartLowEnergyDiscoverySession() { |
adapter_->StartDiscoverySessionWithFilter( |
- base::WrapUnique(new BluetoothDiscoveryFilter(BLUETOOTH_TRANSPORT_LE)), |
+ base::MakeUnique<BluetoothDiscoveryFilter>(BLUETOOTH_TRANSPORT_LE), |
GetDiscoverySessionCallback(Call::EXPECTED), |
GetErrorCallback(Call::NOT_EXPECTED)); |
base::RunLoop().RunUntilIdle(); |
@@ -46,7 +46,7 @@ void BluetoothTestBase::StartLowEnergyDiscoverySession() { |
void BluetoothTestBase::StartLowEnergyDiscoverySessionExpectedToFail() { |
adapter_->StartDiscoverySessionWithFilter( |
- base::WrapUnique(new BluetoothDiscoveryFilter(BLUETOOTH_TRANSPORT_LE)), |
+ base::MakeUnique<BluetoothDiscoveryFilter>(BLUETOOTH_TRANSPORT_LE), |
GetDiscoverySessionCallback(Call::NOT_EXPECTED), |
GetErrorCallback(Call::EXPECTED)); |
base::RunLoop().RunUntilIdle(); |