| Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| index fcb4ada4d4029ff35814bbae1f0fa55a4e70dbc5..eb271048c9ea41df190ea08e598cebce221f46bc 100644
|
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| @@ -919,7 +919,7 @@ void BluetoothDispatcherHost::OnWriteValue(
|
|
|
| query_result.characteristic->WriteRemoteCharacteristic(
|
| value, base::Bind(&BluetoothDispatcherHost::OnWriteValueSuccess,
|
| - weak_ptr_on_ui_thread_, thread_id, request_id),
|
| + weak_ptr_on_ui_thread_, thread_id, request_id, value),
|
| base::Bind(&BluetoothDispatcherHost::OnWriteValueFailed,
|
| weak_ptr_on_ui_thread_, thread_id, request_id));
|
| }
|
| @@ -1223,11 +1223,14 @@ void BluetoothDispatcherHost::OnCharacteristicReadValueError(
|
| TranslateGATTError(error_code, UMAGATTOperation::CHARACTERISTIC_READ)));
|
| }
|
|
|
| -void BluetoothDispatcherHost::OnWriteValueSuccess(int thread_id,
|
| - int request_id) {
|
| +void BluetoothDispatcherHost::OnWriteValueSuccess(
|
| + int thread_id,
|
| + int request_id,
|
| + const std::vector<uint8_t>& value) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| RecordCharacteristicWriteValueOutcome(UMAGATTOperationOutcome::SUCCESS);
|
| - Send(new BluetoothMsg_WriteCharacteristicValueSuccess(thread_id, request_id));
|
| + Send(new BluetoothMsg_WriteCharacteristicValueSuccess(thread_id, request_id,
|
| + value));
|
| }
|
|
|
| void BluetoothDispatcherHost::OnWriteValueFailed(
|
|
|