| 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..1ce7c35bc0f70af6978edb9e1e3148ebf5850835 100644
|
| --- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
|
| +++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
|
| @@ -10,8 +10,10 @@
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/observer_list.h"
|
| +#include "base/values.h"
|
| #include "dbus/bus.h"
|
| #include "dbus/object_manager.h"
|
| +#include "dbus/values_util.h"
|
| #include "third_party/cros_system_api/dbus/service_constants.h"
|
|
|
| namespace bluez {
|
| @@ -95,6 +97,11 @@ class BluetoothGattCharacteristicClientImpl
|
| bluetooth_gatt_characteristic::kBluetoothGattCharacteristicInterface,
|
| bluetooth_gatt_characteristic::kReadValue);
|
|
|
| + // Append empty option dict
|
| + dbus::MessageWriter writer(&method_call);
|
| + base::DictionaryValue dict;
|
| + dbus::AppendValueData(&writer, dict);
|
| +
|
| object_proxy->CallMethodWithErrorCallback(
|
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| base::Bind(&BluetoothGattCharacteristicClientImpl::OnValueSuccess,
|
| @@ -121,6 +128,10 @@ class BluetoothGattCharacteristicClientImpl
|
| dbus::MessageWriter writer(&method_call);
|
| writer.AppendArrayOfBytes(value.data(), value.size());
|
|
|
| + // Append empty option dict
|
| + base::DictionaryValue dict;
|
| + dbus::AppendValueData(&writer, dict);
|
| +
|
| object_proxy->CallMethodWithErrorCallback(
|
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| base::Bind(&BluetoothGattCharacteristicClientImpl::OnSuccess,
|
|
|