| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" | 5 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
| 11 #include "dbus/exported_object.h" | 12 #include "dbus/exported_object.h" |
| 12 #include "dbus/message.h" | 13 #include "dbus/message.h" |
| 13 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 14 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 14 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" | 15 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" |
| 15 #include "third_party/cros_system_api/dbus/service_constants.h" | 16 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 16 | 17 |
| 17 namespace bluez { | 18 namespace bluez { |
| 18 | 19 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 const dbus::ObjectPath& object_path, | 240 const dbus::ObjectPath& object_path, |
| 240 Delegate* delegate) { | 241 Delegate* delegate) { |
| 241 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { | 242 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { |
| 242 return new BluetoothProfileServiceProviderImpl(bus, object_path, delegate); | 243 return new BluetoothProfileServiceProviderImpl(bus, object_path, delegate); |
| 243 } else { | 244 } else { |
| 244 return new FakeBluetoothProfileServiceProvider(object_path, delegate); | 245 return new FakeBluetoothProfileServiceProvider(object_path, delegate); |
| 245 } | 246 } |
| 246 } | 247 } |
| 247 | 248 |
| 248 } // namespace bluez | 249 } // namespace bluez |
| OLD | NEW |