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

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

Issue 1973343005: Remove service, add device, in BluetoothLocalGattService::Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_delegate_wrapper.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc b/device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc
index 08511ea1928b826b9dfc48ee703fa932be6de672..3373da0d6ba7f87b0e14bd3d8754ca930207456b 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc
@@ -19,7 +19,7 @@ void BluetoothGattCharacteristicDelegateWrapper::GetValue(
const device::BluetoothLocalGattService::Delegate::ErrorCallback&
error_callback) {
service_->GetDelegate()->OnCharacteristicReadRequest(
- service_, characteristic_, 0, callback, error_callback);
+ nullptr, characteristic_, 0, callback, error_callback);
}
void BluetoothGattCharacteristicDelegateWrapper::SetValue(
@@ -28,15 +28,15 @@ void BluetoothGattCharacteristicDelegateWrapper::SetValue(
const device::BluetoothLocalGattService::Delegate::ErrorCallback&
error_callback) {
service_->GetDelegate()->OnCharacteristicWriteRequest(
- service_, characteristic_, value, 0, callback, error_callback);
+ nullptr, characteristic_, value, 0, callback, error_callback);
}
void BluetoothGattCharacteristicDelegateWrapper::StartNotifications() {
- service_->GetDelegate()->OnNotificationsStart(service_, characteristic_);
+ service_->GetDelegate()->OnNotificationsStart(nullptr, characteristic_);
}
void BluetoothGattCharacteristicDelegateWrapper::StopNotifications() {
- service_->GetDelegate()->OnNotificationsStop(service_, characteristic_);
+ service_->GetDelegate()->OnNotificationsStop(nullptr, characteristic_);
}
} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698