| Index: content/browser/bluetooth/bluetooth_metrics.h
|
| diff --git a/content/browser/bluetooth/bluetooth_metrics.h b/content/browser/bluetooth/bluetooth_metrics.h
|
| index fb1a282d351e949844fdf7ac1da75179c0bbd489..bceb1772a8bd1370089b8a0f1b25b17259ad0ff8 100644
|
| --- a/content/browser/bluetooth/bluetooth_metrics.h
|
| +++ b/content/browser/bluetooth/bluetooth_metrics.h
|
| @@ -29,6 +29,8 @@ enum class UMAWebBluetoothFunction {
|
| GET_CHARACTERISTIC = 3,
|
| CHARACTERISTIC_READ_VALUE = 4,
|
| CHARACTERISTIC_WRITE_VALUE = 5,
|
| + CHARACTERISTIC_START_NOTIFICATIONS = 6,
|
| + CHARACTERISTIC_STOP_NOTIFICATIONS = 7,
|
| // NOTE: Add new actions immediately above this line. Make sure to update
|
| // the enum list in tools/metrics/histograms/histograms.xml accordingly.
|
| COUNT
|
| @@ -159,6 +161,7 @@ enum UMAGATTOperationOutcome {
|
| enum class UMAGATTOperation {
|
| CHARACTERISTIC_READ,
|
| CHARACTERISTIC_WRITE,
|
| + START_NOTIFICATIONS,
|
| // Note: Add new GATT Operations immediately above this line.
|
| COUNT
|
| };
|
| @@ -181,6 +184,12 @@ void RecordCharacteristicReadValueOutcome(UMAGATTOperationOutcome error);
|
| // Send(BluetoothMsg_WriteCharacteristicValueError).
|
| void RecordCharacteristicWriteValueOutcome(UMAGATTOperationOutcome error);
|
|
|
| +// Characteristic.startNotifications() Metrics
|
| +// There should be a call to this function for every call to
|
| +// Send(BluetoothMsg_StartNotificationsSuccess) and
|
| +// Send(BluetoothMsg_StopNotificationsError).
|
| +void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome);
|
| +
|
| } // namespace content
|
|
|
| #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
|
|
|