summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_device_win.cc
diff options
context:
space:
mode:
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-11 22:44:48 +0000
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-11 22:44:48 +0000
commitc8154319793257327d61d505dbccac9f5917d16b (patch)
tree3538b3f18c8e9f3111e4f4cafa47a7842c9106e4 /device/bluetooth/bluetooth_device_win.cc
parentcb84ed9d9ef538a84eec01015ca3017fac9bd86e (diff)
downloadchromium_src-c8154319793257327d61d505dbccac9f5917d16b.zip
chromium_src-c8154319793257327d61d505dbccac9f5917d16b.tar.gz
chromium_src-c8154319793257327d61d505dbccac9f5917d16b.tar.bz2
Add BluetoothDevice::VendorIDSource()
The Vendor ID of a device can be either allocated by the Bluetooth SIG or USB IF, providing two completely seperate overlapping namespaces for identifiers. In order to distinguish which vendor an identifier represents, add a VendorIDSource() method to BluetoothDevice that returns BLUETOOTH or USB respectively. Add to the metrics collection as well. BUG=350432 TEST=device_unittests R=armansito@chromium.org, isherman@chromium.org Review URL: https://codereview.chromium.org/191223003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_device_win.cc')
-rw-r--r--device/bluetooth/bluetooth_device_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index bfd9bc6..3f95efd 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -71,6 +71,11 @@ std::string BluetoothDeviceWin::GetAddress() const {
return address_;
}
+BluetoothDevice::VendorIDSource
+BluetoothDeviceWin::GetVendorIDSource() const {
+ return VENDOR_ID_UNKNOWN;
+}
+
uint16 BluetoothDeviceWin::GetVendorID() const {
return 0;
}