summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorbeaufort.francois <beaufort.francois@gmail.com>2016-01-19 17:59:04 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-20 02:01:12 +0000
commit1e18420eba68c4d0bfd66d2a4d5c805ed4a867cf (patch)
tree92607afc88de15d8e51f73d7f7c30dc804c8c222 /device
parent0500638c4c7e29d0b8d979faa2fff7b9dc7b0d2c (diff)
downloadchromium_src-1e18420eba68c4d0bfd66d2a4d5c805ed4a867cf.zip
chromium_src-1e18420eba68c4d0bfd66d2a4d5c805ed4a867cf.tar.gz
chromium_src-1e18420eba68c4d0bfd66d2a4d5c805ed4a867cf.tar.bz2
bluetooth: Add histogram for Start Service Discovery not supported by kernel.
BUG=578779 Review URL: https://codereview.chromium.org/1605683004 Cr-Commit-Position: refs/heads/master@{#370278}
Diffstat (limited to 'device')
-rw-r--r--device/bluetooth/bluetooth_adapter_bluez.cc2
-rw-r--r--device/bluetooth/bluetooth_discovery_session_outcome.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_adapter_bluez.cc b/device/bluetooth/bluetooth_adapter_bluez.cc
index 4b50cd7..e397199 100644
--- a/device/bluetooth/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluetooth_adapter_bluez.cc
@@ -74,6 +74,8 @@ UMABluetoothDiscoverySessionOutcome TranslateDiscoveryErrorToUMA(
return UMABluetoothDiscoverySessionOutcome::BLUEZ_DBUS_IN_PROGRESS;
} else if (error_name == bluetooth_device::kErrorNotReady) {
return UMABluetoothDiscoverySessionOutcome::BLUEZ_DBUS_NOT_READY;
+ } else if (error_name == bluetooth_device::kErrorNotSupported) {
+ return UMABluetoothDiscoverySessionOutcome::BLUEZ_DBUS_UNSUPPORTED_DEVICE;
} else if (error_name == bluetooth_device::kErrorFailed) {
return UMABluetoothDiscoverySessionOutcome::FAILED;
} else {
diff --git a/device/bluetooth/bluetooth_discovery_session_outcome.h b/device/bluetooth/bluetooth_discovery_session_outcome.h
index 9bc83a3..41a85ed 100644
--- a/device/bluetooth/bluetooth_discovery_session_outcome.h
+++ b/device/bluetooth/bluetooth_discovery_session_outcome.h
@@ -29,6 +29,7 @@ enum class UMABluetoothDiscoverySessionOutcome {
BLUEZ_DBUS_IN_PROGRESS = 11,
BLUEZ_DBUS_NOT_READY = 12,
BLUEZ_DBUS_FAILED_MAYBE_UNSUPPORTED_TRANSPORT = 13,
+ BLUEZ_DBUS_UNSUPPORTED_DEVICE = 14,
// NOTE: Add new outcomes immediately above this line. Make sure to update the
// enum list in tools/metrics/histograms/histograms.xml accordingly.
COUNT