#include "base/bind.h"
#include "base/logging.h"
-#include "chromeos/dbus/fake_bluetooth_adapter_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_manager.h"
: public BluetoothAdapterClient,
public dbus::ObjectManager::Interface {
public:
- BluetoothAdapterClientImpl() : weak_ptr_factory_(this) {}
+ BluetoothAdapterClientImpl()
+ : object_manager_(NULL), weak_ptr_factory_(this) {}
virtual ~BluetoothAdapterClientImpl() {
object_manager_->UnregisterInterface(
BluetoothAdapterClient::~BluetoothAdapterClient() {
}
-BluetoothAdapterClient* BluetoothAdapterClient::Create(
- DBusClientImplementationType type) {
- if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
- return new BluetoothAdapterClientImpl();
- DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new FakeBluetoothAdapterClient();
+BluetoothAdapterClient* BluetoothAdapterClient::Create() {
+ return new BluetoothAdapterClientImpl;
}
} // namespace chromeos