| Index: content/browser/bluetooth/bluetooth_metrics.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_metrics.cc b/content/browser/bluetooth/bluetooth_metrics.cc
|
| index af7216a81b765108afb1abcd057698f8099752f7..99b7fdb554b5ce589a9ebb4a6e688ff4cc006916 100644
|
| --- a/content/browser/bluetooth/bluetooth_metrics.cc
|
| +++ b/content/browser/bluetooth/bluetooth_metrics.cc
|
| @@ -140,6 +140,23 @@ void BluetoothMetrics::RecordGetPrimaryServiceOutcome(
|
| static_cast<int>(UMAGetPrimaryServiceOutcome::COUNT));
|
| }
|
|
|
| +// getCharacteristic
|
| +
|
| +// static
|
| +void BluetoothMetrics::RecordGetCharacteristicOutcome(
|
| + UMAGetCharacteristicOutcome outcome) {
|
| + UMA_HISTOGRAM_ENUMERATION(
|
| + "Bluetooth.Web.GetCharacteristic.Outcome", static_cast<int>(outcome),
|
| + static_cast<int>(UMAGetCharacteristicOutcome::COUNT));
|
| +}
|
| +
|
| +// static
|
| +void BluetoothMetrics::RecordGetCharacteristicCharacteristic(
|
| + const std::string& characteristic) {
|
| + UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Web.GetCharacteristic.Characteristic",
|
| + HashUUID(characteristic));
|
| +}
|
| +
|
| // read/write characteristic
|
|
|
| // static
|
|
|