| Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| index 1e25ff41326e93ba4a4cd90c7abf1a91906eeaab..908dbf777171cb70d1101fdcb9767ac03b61d2f8 100644
|
| --- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| +++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| @@ -14,6 +14,7 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "device/bluetooth/bluetooth_adapter_mac.h"
|
| +#include "device/bluetooth/bluetooth_adapter_mac_metrics.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| #include "device/bluetooth/bluetooth_low_energy_peripheral_delegate.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h"
|
| @@ -222,6 +223,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverPrimaryServices(NSError* error) {
|
| discovery_pending_count_ = 0;
|
| return;
|
| }
|
| + LogDidDiscoverPrimaryServicesErrorToHistogram(error);
|
| if (error) {
|
| // TODO(http://crbug.com/609320): Need to pass the error.
|
| // TODO(http://crbug.com/609844): Decide what to do if discover failed
|
| @@ -268,6 +270,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverPrimaryServices(NSError* error) {
|
| void BluetoothLowEnergyDeviceMac::DidDiscoverCharacteristics(
|
| CBService* cb_service,
|
| NSError* error) {
|
| + LogDidDiscoverCharacteristicsErrorToHistogram(error);
|
| if (error) {
|
| // TODO(http://crbug.com/609320): Need to pass the error.
|
| // TODO(http://crbug.com/609844): Decide what to do if discover failed
|
| @@ -347,6 +350,7 @@ void BluetoothLowEnergyDeviceMac::DidUpdateNotificationState(
|
| void BluetoothLowEnergyDeviceMac::DidDiscoverDescriptors(
|
| CBCharacteristic* cb_characteristic,
|
| NSError* error) {
|
| + LogDidDiscoverDescriptorsErrorToHistogram(error);
|
| if (error) {
|
| // TODO(http://crbug.com/609320): Need to pass the error.
|
| // TODO(http://crbug.com/609844): Decide what to do if discover failed
|
| @@ -491,6 +495,7 @@ BluetoothLowEnergyDeviceMac::GetBluetoothRemoteGattDescriptorMac(
|
| void BluetoothLowEnergyDeviceMac::DidDisconnectPeripheral(NSError* error) {
|
| connected_ = false;
|
| VLOG(1) << *this << ": Disconnected from peripheral.";
|
| + LogDidDisconnectPeripheralErrorToHistogram(error);
|
| if (error) {
|
| VLOG(1) << *this
|
| << ": Bluetooth error: " << BluetoothAdapterMac::String(error);
|
|
|