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..add72e210d3696cb84f68797bdca700e53a79169 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,13 @@ 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 |