Chromium Code Reviews| Index: device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.cc b/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| index cc4eaefd168133e2254bf8b58a50028a5a22380d..8eef208ca96917165c4cd330034c3cfaaa4a7e87 100644 |
| --- a/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| +++ b/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| @@ -601,8 +601,9 @@ void FakeBluetoothDeviceClient::SetLEConnectionParameters( |
| const base::Closure& callback, |
| const ErrorCallback& error_callback) { |
| Properties* properties = GetProperties(object_path); |
| - if (!properties->connected.value()) { |
| - error_callback.Run(bluetooth_device::kErrorNotConnected, "Not Connected"); |
| + if (properties->type.value() == kTypeBredr) { |
|
ortuno
2017/05/26 16:54:36
I'm not that familiar with type as is not in upstr
Tim Song
2017/05/26 19:56:18
This property is exposed by the org.bluez.Device1
ortuno
2017/05/26 19:59:50
It's optional though so it could still be invalid.
Miao
2017/05/31 20:14:06
Device Type is a CHROMIUM specific patch that upst
Tim Song
2017/06/01 18:06:03
Done. I added the validity check.
|
| + error_callback.Run(bluetooth_device::kErrorFailed, |
| + "BR/EDR devices not supported"); |
|
ortuno
2017/05/26 16:54:36
Should the call still work for non-connected devic
Tim Song
2017/05/26 19:56:18
Yes. One of the principle use cases is to set the
Miao
2017/05/31 20:14:06
The connection parameters can be set BEFORE or DUR
Tim Song
2017/06/01 18:06:02
Acknowledged.
|
| return; |
| } |