Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc

Issue 1979163002: Add DBus plumbing and tests for sending devices with ATT read/writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devices
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc
index 587705b6eba5ef95f77b87e97b81166017608465..9d1699c9f1b2f87a86552d578be0c95b403c67b5 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc
@@ -186,6 +186,7 @@ void BluetoothGattCharacteristicServiceProviderImpl::Get(
if (property_name == bluetooth_gatt_characteristic::kValueProperty) {
DCHECK(delegate_);
delegate_->GetValue(
+ dbus::ObjectPath(),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnGet,
weak_ptr_factory_.GetWeakPtr(), method_call,
response_sender),
@@ -288,7 +289,7 @@ void BluetoothGattCharacteristicServiceProviderImpl::Set(
std::vector<uint8_t> value(bytes, bytes + length);
DCHECK(delegate_);
delegate_->SetValue(
- value,
+ dbus::ObjectPath(), value,
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnSet,
weak_ptr_factory_.GetWeakPtr(), method_call, response_sender),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnFailure,
@@ -328,6 +329,7 @@ void BluetoothGattCharacteristicServiceProviderImpl::GetAll(
// response in the success callback.
DCHECK(delegate_);
delegate_->GetValue(
+ dbus::ObjectPath(),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnGetAll,
weak_ptr_factory_.GetWeakPtr(), method_call, response_sender),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnFailure,
@@ -342,6 +344,7 @@ void BluetoothGattCharacteristicServiceProviderImpl::ReadValue(
DCHECK(OnOriginThread());
DCHECK(delegate_);
delegate_->GetValue(
+ dbus::ObjectPath(),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnReadValue,
weak_ptr_factory_.GetWeakPtr(), method_call, response_sender),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnFailure,
@@ -367,7 +370,7 @@ void BluetoothGattCharacteristicServiceProviderImpl::WriteValue(
DCHECK(delegate_);
delegate_->SetValue(
- value,
+ dbus::ObjectPath(), value,
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnWriteValue,
weak_ptr_factory_.GetWeakPtr(), method_call, response_sender),
base::Bind(&BluetoothGattCharacteristicServiceProviderImpl::OnFailure,

Powered by Google App Engine
This is Rietveld 408576698