Index: content/browser/bluetooth/bluetooth_metrics.h |
diff --git a/content/browser/bluetooth/bluetooth_metrics.h b/content/browser/bluetooth/bluetooth_metrics.h |
index 88f0feaa1ae377a0321bb8d3a0323bc44dfce654..581cea4aa1df06b8f08f806893a83539d3f8543d 100644 |
--- a/content/browser/bluetooth/bluetooth_metrics.h |
+++ b/content/browser/bluetooth/bluetooth_metrics.h |
@@ -97,6 +97,22 @@ class BluetoothMetrics { |
static void RecordGetPrimaryServiceOutcome( |
UMAGetPrimaryServiceOutcome outcome); |
+ // getCharacteristic() |
+ enum class UMAGetCharacteristicOutcome { |
+ SUCCESS = 0, |
+ NO_DEVICE = 1, |
+ NO_SERVICE = 2, |
+ NOT_FOUND = 3, |
+ // Note: Add new outcomes immediately above this line. |
+ // Make sure to update the enum list in |
+ // tools/metrisc/histogram/histograms.xml accordingly. |
+ COUNT |
+ }; |
+ static void RecordGetCharacteristicOutcome( |
+ UMAGetCharacteristicOutcome outcome); |
+ static void RecordGetCharacteristicCharacteristic( |
+ const std::string& characteristic); |
+ |
// read/write characteristics |
// TODO(ortuno): For now we are just copying over the code to record these |
// errors but a follow up CL will add a function for each operation. |