summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc')
-rw-r--r--device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
index b5e6f81..6081112 100644
--- a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
@@ -413,15 +413,14 @@ BluetoothLEAdvertisementServiceProvider::Create(
scoped_ptr<ManufacturerData> manufacturer_data,
scoped_ptr<UUIDList> solicit_uuids,
scoped_ptr<ServiceData> service_data) {
- if (!bluez::BluezDBusManager::Get()->IsUsingStub()) {
+ if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) {
return make_scoped_ptr(new BluetoothAdvertisementServiceProviderImpl(
bus, object_path, delegate, type, std::move(service_uuids),
std::move(manufacturer_data), std::move(solicit_uuids),
std::move(service_data)));
- } else {
- return make_scoped_ptr(
- new FakeBluetoothLEAdvertisementServiceProvider(object_path, delegate));
}
+ return make_scoped_ptr(
+ new FakeBluetoothLEAdvertisementServiceProvider(object_path, delegate));
}
} // namespace bluez