Chromium Code Reviews| Index: device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc |
| diff --git a/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc b/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc |
| index 0002ddbb03d0267a135a64cc41eedb81fe24e9d9..38e631fbf181fa7d011acb3319be9675fdeac0d3 100644 |
| --- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc |
| +++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc |
| @@ -95,6 +95,12 @@ class BluetoothGattCharacteristicClientImpl |
| bluetooth_gatt_characteristic::kBluetoothGattCharacteristicInterface, |
| bluetooth_gatt_characteristic::kReadValue); |
| + // Append empty option dict |
|
ortuno
2016/05/27 20:16:53
Any reason why you do this manually instead of usi
|
| + dbus::MessageWriter writer(&method_call); |
| + dbus::MessageWriter array_writer(NULL); |
| + writer.OpenArray("{sv}", &array_writer); |
| + writer.CloseContainer(&array_writer); |
| + |
| object_proxy->CallMethodWithErrorCallback( |
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, |
| base::Bind(&BluetoothGattCharacteristicClientImpl::OnValueSuccess, |
| @@ -121,6 +127,11 @@ class BluetoothGattCharacteristicClientImpl |
| dbus::MessageWriter writer(&method_call); |
| writer.AppendArrayOfBytes(value.data(), value.size()); |
| + // Append empty option dict |
| + dbus::MessageWriter array_writer(NULL); |
| + writer.OpenArray("{sv}", &array_writer); |
| + writer.CloseContainer(&array_writer); |
| + |
| object_proxy->CallMethodWithErrorCallback( |
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, |
| base::Bind(&BluetoothGattCharacteristicClientImpl::OnSuccess, |