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

Unified Diff: device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.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/dbus/bluetooth_le_advertisement_service_provider.cc
diff --git a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
index 9bafb98f0e82cd98e08ab208ab82a0c4d6f77438..3cb67fc1409ac1ee7260d8b6d3ffc608726a1778 100644
--- a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
@@ -416,13 +416,13 @@ BluetoothLEAdvertisementServiceProvider::Create(
std::unique_ptr<UUIDList> solicit_uuids,
std::unique_ptr<ServiceData> service_data) {
if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) {
- return base::WrapUnique(new BluetoothAdvertisementServiceProviderImpl(
+ return base::MakeUnique<BluetoothAdvertisementServiceProviderImpl>(
bus, object_path, delegate, type, std::move(service_uuids),
std::move(manufacturer_data), std::move(solicit_uuids),
- std::move(service_data)));
+ std::move(service_data));
}
- return base::WrapUnique(
- new FakeBluetoothLEAdvertisementServiceProvider(object_path, delegate));
+ return base::MakeUnique<FakeBluetoothLEAdvertisementServiceProvider>(
+ object_path, delegate);
}
} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698