Chromium Code Reviews| Index: device/bluetooth/bluez/bluetooth_device_bluez.cc |
| diff --git a/device/bluetooth/bluez/bluetooth_device_bluez.cc b/device/bluetooth/bluez/bluetooth_device_bluez.cc |
| index 8e099686eeec7a45f806055c3c2b5f30e4962a84..1c1e4d5f3fb521fb5862320b1d550664a47a617a 100644 |
| --- a/device/bluetooth/bluez/bluetooth_device_bluez.cc |
| +++ b/device/bluetooth/bluez/bluetooth_device_bluez.cc |
| @@ -333,10 +333,11 @@ bool BluetoothDeviceBlueZ::IsPaired() const { |
| object_path_); |
| DCHECK(properties); |
| - // Trusted devices are devices that don't support pairing but that the |
| - // user has explicitly connected; it makes no sense for UI purposes to |
| - // treat them differently from each other. |
| - return properties->paired.value() || properties->trusted.value(); |
| + // The Paired property reflects the successful pairing for BR/EDR/BLE. The |
|
rkc
2017/03/15 22:49:01
nit: BR/EDR/LE
|
| + // value of the Paired property is always false for the devices that don't |
| + // support pairing. Once a device is paired successfully, the Trusted |
|
dmitrygr
2017/03/15 22:39:50
You mean "Paired" property?
|
| + // property will be set to true. |
| + return properties->paired.value(); |
| } |
| bool BluetoothDeviceBlueZ::IsConnected() const { |
| @@ -449,7 +450,7 @@ void BluetoothDeviceBlueZ::Connect( |
| VLOG(1) << object_path_.value() << ": Connecting, " << num_connecting_calls_ |
| << " in progress"; |
| - if (IsPaired() || !pairing_delegate || !IsPairable()) { |
| + if (IsPaired() || !pairing_delegate) { |
| // No need to pair, or unable to, skip straight to connection. |
| ConnectInternal(false, callback, error_callback); |
| } else { |