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

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

Issue 2458163003: Add UMA for WebBluetooth RSSI signal strength level (Closed)
Patch Set: address comments Created 4 years, 1 month 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
« no previous file with comments | « content/browser/bluetooth/bluetooth_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c9e540517d0e3603a7503fb9a15ddd536b554390 100644
--- a/content/browser/bluetooth/bluetooth_metrics.cc
+++ b/content/browser/bluetooth/bluetooth_metrics.cc
@@ -328,4 +328,16 @@ void RecordStartNotificationsOutcome(CacheQueryOutcome outcome) {
TranslateCacheQueryOutcomeToGATTOperationOutcome(outcome));
}
+void RecordRSSISignalStrength(int rssi) {
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Web.RequestDevice.RSSISignalStrength",
+ rssi);
+}
+
+void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Bluetooth.Web.RequestDevice.RSSISignalStrengthLevel",
+ static_cast<int>(level),
+ static_cast<int>(UMARSSISignalStrengthLevel::COUNT));
+}
+
} // namespace content
« no previous file with comments | « content/browser/bluetooth/bluetooth_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698