Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 2751303002: bluetooth: Stop support of reconnecting devices not supporting pairing (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 9aaf8e43d5eee6f0a44f3ceded80846c6f2edda9..e67ffcd0baf7ede404a0074d6c69538f970d62cc 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -274,24 +274,12 @@ bool BluetoothDevice::IsPairable() const {
// Microsoft "Microsoft Bluetooth Notebook Mouse 5000", model X807028-001
if (type == BluetoothDeviceType::MOUSE && vendor == "7C:ED:8D")
return false;
- // Sony PlayStation Dualshock3
- if (IsTrustable())
- return false;
// TODO: Move this database into a config file.
return true;
}
-bool BluetoothDevice::IsTrustable() const {
- // Sony PlayStation Dualshock3
- if ((GetVendorID() == 0x054c && GetProductID() == 0x0268 &&
- GetName() == std::string("PLAYSTATION(R)3 Controller")))
- return true;
-
- return false;
-}
-
BluetoothDevice::UUIDSet BluetoothDevice::GetUUIDs() const {
return device_uuids_.GetUUIDs();
}
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698