summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/dbus/bluetooth_profile_service_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/dbus/bluetooth_profile_service_provider.cc')
-rw-r--r--device/bluetooth/dbus/bluetooth_profile_service_provider.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/device/bluetooth/dbus/bluetooth_profile_service_provider.cc b/device/bluetooth/dbus/bluetooth_profile_service_provider.cc
index 4d2845d..ef6dc8d 100644
--- a/device/bluetooth/dbus/bluetooth_profile_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_profile_service_provider.cc
@@ -241,11 +241,10 @@ BluetoothProfileServiceProvider* BluetoothProfileServiceProvider::Create(
dbus::Bus* bus,
const dbus::ObjectPath& object_path,
Delegate* delegate) {
- if (!bluez::BluezDBusManager::Get()->IsUsingStub()) {
+ if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) {
return new BluetoothProfileServiceProviderImpl(bus, object_path, delegate);
- } else {
- return new FakeBluetoothProfileServiceProvider(object_path, delegate);
}
+ return new FakeBluetoothProfileServiceProvider(object_path, delegate);
}
} // namespace bluez