Chromium Code Reviews| Index: device/bluetooth/bluetooth_device_experimental_chromeos.cc |
| diff --git a/device/bluetooth/bluetooth_device_experimental_chromeos.cc b/device/bluetooth/bluetooth_device_experimental_chromeos.cc |
| index fb36c8450c43312e928c254f5a19fdd1135a32ea..be58359faa0b9f5dfa873b94562c3639cd4cb4c7 100644 |
| --- a/device/bluetooth/bluetooth_device_experimental_chromeos.cc |
| +++ b/device/bluetooth/bluetooth_device_experimental_chromeos.cc |
| @@ -10,6 +10,7 @@ |
| #include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h" |
| #include "chromeos/dbus/experimental_bluetooth_agent_service_provider.h" |
| #include "chromeos/dbus/experimental_bluetooth_device_client.h" |
| +#include "chromeos/dbus/experimental_bluetooth_input_client.h" |
| #include "dbus/bus.h" |
| #include "device/bluetooth/bluetooth_adapter_experimental_chromeos.h" |
| #include "device/bluetooth/bluetooth_socket.h" |
| @@ -87,8 +88,13 @@ bool BluetoothDeviceExperimentalChromeOS::IsConnected() const { |
| } |
| bool BluetoothDeviceExperimentalChromeOS::IsConnectable() const { |
| - // TODO(deymo): implement |
| - return false; |
| + ExperimentalBluetoothInputClient::Properties* input_properties = |
| + DBusThreadManager::Get()->GetExperimentalBluetoothInputClient()-> |
| + GetProperties(object_path_); |
| + if (!input_properties) |
|
keybuk
2013/04/18 20:50:25
This bit is worthy of a comment explaining why thi
deymo
2013/04/18 22:19:55
Done.
|
| + return true; |
| + |
| + return input_properties->reconnect_mode.value() != "device"; |
| } |
| bool BluetoothDeviceExperimentalChromeOS::IsConnecting() const { |