| Index: device/bluetooth/bluetooth_adapter_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
|
| index 64dbb0393113d9c2e73dd6784db11c77994f2d9f..e6397be18fe129d6dd6cb2388f5ab847f92fb079 100644
|
| --- a/device/bluetooth/bluetooth_adapter_mac.mm
|
| +++ b/device/bluetooth/bluetooth_adapter_mac.mm
|
| @@ -24,6 +24,7 @@
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| +#include "device/bluetooth/bluetooth_adapter_mac_metrics.h"
|
| #include "device/bluetooth/bluetooth_classic_device_mac.h"
|
| #include "device/bluetooth/bluetooth_common.h"
|
| #include "device/bluetooth/bluetooth_discovery_session.h"
|
| @@ -699,6 +700,9 @@ void BluetoothAdapterMac::DidFailToConnectPeripheral(CBPeripheral* peripheral,
|
| [low_energy_central_manager_ cancelPeripheralConnection:peripheral];
|
| return;
|
| }
|
| + LogNSErrorToHistogram(
|
| + error, WebBluetoothMacOSAPIs::
|
| + WEB_BLUETOOTH_MACOS_APIS_DID_FAIL_TO_CONNECT_TO_PERIPHERAL);
|
| BluetoothDevice::ConnectErrorCode error_code =
|
| BluetoothDevice::ConnectErrorCode::ERROR_UNKNOWN;
|
| if (error) {
|
|
|