| Index: device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm b/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
|
| index 173adcdf78963b21e8f1bcdb9989a65764b57692..84eaeb71a4b7a195d144228182e4678c4cfb1fd3 100644
|
| --- a/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
|
| +++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
|
| @@ -9,6 +9,7 @@
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #import "device/bluetooth/bluetooth_adapter_mac.h"
|
| +#include "device/bluetooth/bluetooth_adapter_mac_metrics.h"
|
| #import "device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h"
|
|
|
| using base::mac::ObjCCast;
|
| @@ -139,6 +140,7 @@ void BluetoothRemoteGattDescriptorMac::DidUpdateValueForDescriptor(
|
| std::pair<ValueCallback, ErrorCallback> callbacks;
|
| callbacks.swap(read_value_callbacks_);
|
| value_read_or_write_in_progress_ = false;
|
| + RecordDidUpdateValueForDescriptorResult(error);
|
| if (error) {
|
| BluetoothGattService::GattErrorCode error_code =
|
| BluetoothDeviceMac::GetGattErrorCodeFromNSError(error);
|
| @@ -162,6 +164,7 @@ void BluetoothRemoteGattDescriptorMac::DidWriteValueForDescriptor(
|
| std::pair<base::Closure, ErrorCallback> callbacks;
|
| callbacks.swap(write_value_callbacks_);
|
| value_read_or_write_in_progress_ = false;
|
| + RecordDidWriteValueForDescriptorResult(error);
|
| if (error) {
|
| BluetoothGattService::GattErrorCode error_code =
|
| BluetoothDeviceMac::GetGattErrorCodeFromNSError(error);
|
|
|