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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 2751223002: bluetooth: Stop support of reconnecting devices not supporting pairing (Closed)
Patch Set: fix an unittest failure 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
Index: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 587fcb7cb2cfb99b3dfb56d647c0debe0c3073b5..665cbb685a68da5afedd3e6cdd60dd8898597fff 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();
}

Powered by Google App Engine
This is Rietveld 408576698