Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: content/browser/bluetooth/bluetooth_metrics.cc

Issue 2458163003: Add UMA for WebBluetooth RSSI signal strength level (Closed)
Patch Set: add UMA for WebBluetooth RSSI signal strength level Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/bluetooth/bluetooth_metrics.cc
diff --git a/content/browser/bluetooth/bluetooth_metrics.cc b/content/browser/bluetooth/bluetooth_metrics.cc
index 21fb8dd04e56bd42cfb0018e8035f0067e2c1174..86586fd28587c75b07b47d3f1edca66ad6ef0300 100644
--- a/content/browser/bluetooth/bluetooth_metrics.cc
+++ b/content/browser/bluetooth/bluetooth_metrics.cc
@@ -328,4 +328,11 @@ void RecordStartNotificationsOutcome(CacheQueryOutcome outcome) {
TranslateCacheQueryOutcomeToGATTOperationOutcome(outcome));
}
+void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Bluetooth.Web.RequestDevice.RSSISignalStrengthLevel",
+ static_cast<int>(level),
+ static_cast<int>(UMARSSISignalStrengthLevel::COUNT));
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698