Add BluetoothDevice::VendorIDSource()
commitc8154319793257327d61d505dbccac9f5917d16b
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 22:44:48 +0000 (11 22:44 +0000)
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 22:44:48 +0000 (11 22:44 +0000)
tree3538b3f18c8e9f3111e4f4cafa47a7842c9106e4
parentcb84ed9d9ef538a84eec01015ca3017fac9bd86e
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
12 files changed:
chrome/browser/metrics/metrics_log_chromeos.cc
chrome/browser/metrics/metrics_log_unittest.cc
chrome/common/metrics/proto/system_profile.proto
device/bluetooth/bluetooth_chromeos_unittest.cc
device/bluetooth/bluetooth_device.h
device/bluetooth/bluetooth_device_chromeos.cc
device/bluetooth/bluetooth_device_chromeos.h
device/bluetooth/bluetooth_device_mac.h
device/bluetooth/bluetooth_device_mac.mm
device/bluetooth/bluetooth_device_win.cc
device/bluetooth/bluetooth_device_win.h
device/bluetooth/test/mock_bluetooth_device.h