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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp

Issue 1926623002: bluetooth: Remove the device info and device class fields from BluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
index f5e3f8a3d8038e788e1125feba85ffb134ea7055..a3deac29a25057a62d4fcd6cf03eedfbd55a1407 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -72,41 +72,6 @@ DEFINE_TRACE(BluetoothDevice)
visitor->trace(m_gatt);
}
-unsigned BluetoothDevice::deviceClass(bool& isNull)
-{
- isNull = false;
- return m_webDevice->deviceClass;
-}
-
-String BluetoothDevice::vendorIDSource()
-{
- switch (m_webDevice->vendorIDSource) {
- case WebBluetoothDevice::VendorIDSource::Unknown: return String();
- case WebBluetoothDevice::VendorIDSource::Bluetooth: return "bluetooth";
- case WebBluetoothDevice::VendorIDSource::USB: return "usb";
- }
- ASSERT_NOT_REACHED();
- return String();
-}
-
-unsigned BluetoothDevice::vendorID(bool& isNull)
-{
- isNull = false;
- return m_webDevice->vendorID;
-}
-
-unsigned BluetoothDevice::productID(bool& isNull)
-{
- isNull = false;
- return m_webDevice->productID;
-}
-
-unsigned BluetoothDevice::productVersion(bool& isNull)
-{
- isNull = false;
- return m_webDevice->productVersion;
-}
-
Vector<String> BluetoothDevice::uuids()
{
Vector<String> uuids(m_webDevice->uuids.size());

Powered by Google App Engine
This is Rietveld 408576698