| 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..4f0243de137cf02b6c0f0cf409886aea2197b029 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.is_valid() || properties->type.value() == kTypeBredr) {
|
| + error_callback.Run(bluetooth_device::kErrorFailed,
|
| + "BR/EDR devices not supported");
|
| return;
|
| }
|
|
|
|
|