Index: chromeos/dbus/bluetooth_gatt_service_service_provider.cc |
diff --git a/chromeos/dbus/bluetooth_gatt_service_service_provider.cc b/chromeos/dbus/bluetooth_gatt_service_service_provider.cc |
index 545ccfc9239ed1e893b2e17952841661906275c3..88fd581a67aedda6ce5479b687807b36c3422d84 100644 |
--- a/chromeos/dbus/bluetooth_gatt_service_service_provider.cc |
+++ b/chromeos/dbus/bluetooth_gatt_service_service_provider.cc |
@@ -8,8 +8,8 @@ |
#include "base/logging.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/weak_ptr.h" |
-#include "base/sys_info.h" |
#include "base/threading/platform_thread.h" |
+#include "chromeos/dbus/dbus_thread_manager.h" |
#include "chromeos/dbus/fake_bluetooth_gatt_service_service_provider.h" |
#include "dbus/exported_object.h" |
#include "dbus/message.h" |
@@ -269,7 +269,7 @@ BluetoothGattServiceServiceProvider::Create( |
const dbus::ObjectPath& object_path, |
const std::string& uuid, |
const std::vector<dbus::ObjectPath>& includes) { |
- if (base::SysInfo::IsRunningOnChromeOS()) { |
+ if (!DBusThreadManager::IsUsingStub(DBusClientBundle::BLUETOOTH)) { |
return new BluetoothGattServiceServiceProviderImpl( |
bus, object_path, uuid, includes); |
} |