| Index: device/bluetooth/bluetooth_device.cc
|
| diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
|
| index f7bea9ed95422afe8618efb42474ce1d2d08f864..4a70627d4167f3f9aa07b8202da42a8e956d2005 100644
|
| --- a/device/bluetooth/bluetooth_device.cc
|
| +++ b/device/bluetooth/bluetooth_device.cc
|
| @@ -158,6 +158,21 @@ BluetoothDevice::DeviceType BluetoothDevice::GetDeviceType() const {
|
| return DEVICE_UNKNOWN;
|
| }
|
|
|
| +bool BluetoothDevice::IsPairable() const {
|
| + DeviceType type = GetDeviceType();
|
| +
|
| + // Get the vendor part of the address: "00:11:22" for "00:11:22:33:44:55"
|
| + std::string vendor = GetAddress().substr(0, 8);
|
| +
|
| + // Verbatim "Bluetooth Mouse", model 96674
|
| + if ((type == DEVICE_MOUSE && vendor == "00:12:A1") ||
|
| + // Microsoft "Microsoft Bluetooth Notebook Mouse 5000", model X807028-001
|
| + (type == DEVICE_MOUSE && vendor == "7C:ED:8D"))
|
| + return false;
|
| + // TODO: Move this database into a config file.
|
| +
|
| + return true;
|
| +}
|
|
|
| bool BluetoothDevice::ProvidesServiceWithUUID(
|
| const std::string& uuid) const {
|
|
|