| Index: device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc
|
| diff --git a/device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc b/device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc
|
| index ddc314ccac683df0f82f517fa64d162c88227211..e4b724cbf5cc465b0e4be614356426a5713e4656 100644
|
| --- a/device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc
|
| +++ b/device/bluetooth/dbus/bluetooth_gatt_descriptor_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 {
|
| @@ -99,6 +101,11 @@ class BluetoothGattDescriptorClientImpl
|
| bluetooth_gatt_descriptor::kBluetoothGattDescriptorInterface,
|
| bluetooth_gatt_descriptor::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(&BluetoothGattDescriptorClientImpl::OnValueSuccess,
|
| @@ -125,6 +132,10 @@ class BluetoothGattDescriptorClientImpl
|
| 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(&BluetoothGattDescriptorClientImpl::OnSuccess,
|
|
|