diff options
author | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 22:44:48 +0000 |
---|---|---|
committer | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 22:44:48 +0000 |
commit | c8154319793257327d61d505dbccac9f5917d16b (patch) | |
tree | 3538b3f18c8e9f3111e4f4cafa47a7842c9106e4 /device/bluetooth/bluetooth_device_win.cc | |
parent | cb84ed9d9ef538a84eec01015ca3017fac9bd86e (diff) | |
download | chromium_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.cc | 5 |
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; } |