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

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

Issue 2039773005: Add support in Chrome to send notifications to a specific device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_application_service_provider.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
index c32c0ad7e6fe87a0e63dab68153b41858fa13024..730f730dd60d2854204b0642cf12a9e870f05e1b 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
@@ -136,8 +136,10 @@ void BluetoothGattApplicationServiceProvider::CreateAttributeServiceProviders(
}
void BluetoothGattApplicationServiceProvider::SendValueChanged(
+ const dbus::ObjectPath& device_path,
const dbus::ObjectPath& characteristic_path,
- const std::vector<uint8_t>& value) {
+ const std::vector<uint8_t>& value,
+ bool indicate) {
auto characteristic = std::find_if(
characteristic_providers_.begin(), characteristic_providers_.end(),
[&](const std::unique_ptr<BluetoothGattCharacteristicServiceProvider>&
@@ -147,7 +149,7 @@ void BluetoothGattApplicationServiceProvider::SendValueChanged(
<< characteristic_path.value();
return;
}
- characteristic->get()->SendValueChanged(value);
+ characteristic->get()->SendValueChanged(device_path, value, indicate);
}
// static

Powered by Google App Engine
This is Rietveld 408576698