| 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);
|
| }
|
|
|
|
|