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

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

Issue 2449813002: bluetooth: Implement acceptAllDevices (Closed)
Patch Set: 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..2ce5a71d3767178d4d2549d56ce64bd04eeeff75 100644
--- a/content/browser/bluetooth/bluetooth_metrics.cc
+++ b/content/browser/bluetooth/bluetooth_metrics.cc
@@ -91,6 +91,11 @@ static void RecordRequestDeviceOptionalServices(
}
}
+static void RecordRequestDeviceAcceptAllDevices(bool accept_all_devices) {
+ UMA_HISTOGRAM_BOOLEAN("Bluetooth.Web.RequestDevice.AcceptAllDevices",
+ accept_all_devices);
+}
+
static void RecordUnionOfServices(
const blink::mojom::WebBluetoothRequestDeviceOptionsPtr& options) {
std::unordered_set<std::string> union_of_services;
@@ -121,6 +126,7 @@ void RecordRequestDeviceOptions(
const blink::mojom::WebBluetoothRequestDeviceOptionsPtr& options) {
RecordRequestDeviceFilters(options->filters);
RecordRequestDeviceOptionalServices(options->optional_services);
+ RecordRequestDeviceAcceptAllDevices(options->accept_all_devices);
RecordUnionOfServices(options);
}

Powered by Google App Engine
This is Rietveld 408576698