| 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..87590a070f9f6285ba9f48f342d6d0dc8038e71c 100644
|
| --- a/device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc
|
| +++ b/device/bluetooth/dbus/bluetooth_gatt_descriptor_client.cc
|
| @@ -99,6 +99,21 @@ class BluetoothGattDescriptorClientImpl
|
| bluetooth_gatt_descriptor::kBluetoothGattDescriptorInterface,
|
| bluetooth_gatt_descriptor::kReadValue);
|
|
|
| + // Write offset option
|
| + dbus::MessageWriter writer(&method_call);
|
| + dbus::MessageWriter array_writer(NULL);
|
| + dbus::MessageWriter dict_entry_writer(NULL);
|
| + dbus::MessageWriter variant_writer(NULL);
|
| + writer.OpenArray("{sv}", &array_writer);
|
| + array_writer.OpenDictEntry(&dict_entry_writer);
|
| + dict_entry_writer.AppendString(
|
| + bluetooth_gatt_characteristic::kOptionOffset);
|
| + dict_entry_writer.OpenVariant("as", &variant_writer);
|
| + variant_writer.AppendInt16(0);
|
| + dict_entry_writer.CloseContainer(&variant_writer);
|
| + array_writer.CloseContainer(&dict_entry_writer);
|
| + writer.CloseContainer(&array_writer);
|
| +
|
| object_proxy->CallMethodWithErrorCallback(
|
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| base::Bind(&BluetoothGattDescriptorClientImpl::OnValueSuccess,
|
| @@ -125,6 +140,20 @@ class BluetoothGattDescriptorClientImpl
|
| dbus::MessageWriter writer(&method_call);
|
| writer.AppendArrayOfBytes(value.data(), value.size());
|
|
|
| + // Write offset option
|
| + dbus::MessageWriter array_writer(NULL);
|
| + dbus::MessageWriter dict_entry_writer(NULL);
|
| + dbus::MessageWriter variant_writer(NULL);
|
| + writer.OpenArray("{sv}", &array_writer);
|
| + array_writer.OpenDictEntry(&dict_entry_writer);
|
| + dict_entry_writer.AppendString(
|
| + bluetooth_gatt_characteristic::kOptionOffset);
|
| + dict_entry_writer.OpenVariant("as", &variant_writer);
|
| + variant_writer.AppendInt16(0);
|
| + dict_entry_writer.CloseContainer(&variant_writer);
|
| + array_writer.CloseContainer(&dict_entry_writer);
|
| + writer.CloseContainer(&array_writer);
|
| +
|
| object_proxy->CallMethodWithErrorCallback(
|
| &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| base::Bind(&BluetoothGattDescriptorClientImpl::OnSuccess,
|
|
|