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

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.cc

Issue 2257793002: 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: components/arc/bluetooth/arc_bluetooth_bridge.cc
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
index 964f1986f31971bd6144b5708049f9f2f68fef93..7d11d2036d55a8a0f68fea9da1253e607b1853e3 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
@@ -834,8 +834,8 @@ void ArcBluetoothBridge::StartLEScan() {
return;
}
bluetooth_adapter_->StartDiscoverySessionWithFilter(
- base::WrapUnique(
- new BluetoothDiscoveryFilter(device::BLUETOOTH_TRANSPORT_LE)),
+ base::MakeUnique<BluetoothDiscoveryFilter>(
+ device::BLUETOOTH_TRANSPORT_LE),
base::Bind(&ArcBluetoothBridge::OnDiscoveryStarted,
weak_factory_.GetWeakPtr()),
base::Bind(&ArcBluetoothBridge::OnDiscoveryError,
@@ -964,8 +964,8 @@ void ArcBluetoothBridge::OnStartLEListenError(
void ArcBluetoothBridge::StartLEListen(const StartLEListenCallback& callback) {
DCHECK(CalledOnValidThread());
std::unique_ptr<BluetoothAdvertisement::Data> adv_data =
- base::WrapUnique(new BluetoothAdvertisement::Data(
- BluetoothAdvertisement::ADVERTISEMENT_TYPE_BROADCAST));
+ base::MakeUnique<BluetoothAdvertisement::Data>(
+ BluetoothAdvertisement::ADVERTISEMENT_TYPE_BROADCAST);
bluetooth_adapter_->RegisterAdvertisement(
std::move(adv_data), base::Bind(&ArcBluetoothBridge::OnStartLEListenDone,
weak_factory_.GetWeakPtr(), callback),
« no previous file with comments | « components/arc/arc_service_manager.cc ('k') | components/autofill/content/browser/content_autofill_driver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698