| 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_agent_service_provider.h" | 5 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 15 #include "dbus/exported_object.h" | 16 #include "dbus/exported_object.h" |
| 16 #include "dbus/message.h" | 17 #include "dbus/message.h" |
| 17 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 18 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 18 #include "device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h" | 19 #include "device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h" |
| 19 #include "third_party/cros_system_api/dbus/service_constants.h" | 20 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 20 | 21 |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 dbus::Bus* bus, | 439 dbus::Bus* bus, |
| 439 const dbus::ObjectPath& object_path, | 440 const dbus::ObjectPath& object_path, |
| 440 Delegate* delegate) { | 441 Delegate* delegate) { |
| 441 if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) { | 442 if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) { |
| 442 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate); | 443 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate); |
| 443 } | 444 } |
| 444 return new FakeBluetoothAgentServiceProvider(object_path, delegate); | 445 return new FakeBluetoothAgentServiceProvider(object_path, delegate); |
| 445 } | 446 } |
| 446 | 447 |
| 447 } // namespace bluez | 448 } // namespace bluez |
| OLD | NEW |