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

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

Issue 2250023005: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
index f13635443788c77a8edde52456cad872b9f235ee..721ba970ceaedfed0598213097049e750b7c5763 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
@@ -253,9 +253,9 @@ BluetoothLowEnergyConnectionFinder::CreateConnection(
DCHECK(remote_device_.bluetooth_address.empty() ||
remote_device_.bluetooth_address == device_address);
remote_device_.bluetooth_address = device_address;
- return base::WrapUnique(new BluetoothLowEnergyConnection(
+ return base::MakeUnique<BluetoothLowEnergyConnection>(
remote_device_, adapter_, remote_service_uuid_, bluetooth_throttler_,
- max_number_of_tries_));
+ max_number_of_tries_);
}
void BluetoothLowEnergyConnectionFinder::OnConnectionStatusChanged(
« no previous file with comments | « no previous file | components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698