Index: content/browser/bluetooth/bluetooth_metrics.cc |
diff --git a/content/browser/bluetooth/bluetooth_metrics.cc b/content/browser/bluetooth/bluetooth_metrics.cc |
index e04a7cab0ea54ac3730cd60be9c1541c3e148412..e9a34c82ad9e2912e0e44609ed87a224e4116337 100644 |
--- a/content/browser/bluetooth/bluetooth_metrics.cc |
+++ b/content/browser/bluetooth/bluetooth_metrics.cc |
@@ -150,6 +150,9 @@ void RecordGATTOperationOutcome(UMAGATTOperation operation, |
case UMAGATTOperation::CHARACTERISTIC_WRITE: |
RecordCharacteristicWriteValueOutcome(outcome); |
return; |
+ case UMAGATTOperation::START_NOTIFICATIONS: |
+ RecordStartNotificationsOutcome(outcome); |
+ return; |
case UMAGATTOperation::COUNT: |
NOTREACHED(); |
return; |
@@ -174,4 +177,12 @@ void RecordCharacteristicWriteValueOutcome(UMAGATTOperationOutcome outcome) { |
static_cast<int>(UMAGATTOperationOutcome::COUNT)); |
} |
+// Characteristic.startNotifications |
+void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome) { |
+ UMA_HISTOGRAM_ENUMERATION( |
+ "Bluetooth.Web.Characteristic.StartNotifications.Outcome", |
+ static_cast<int>(outcome), |
+ static_cast<int>(UMAGATTOperationOutcome::COUNT)); |
+} |
+ |
} // namespace content |