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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_mac.mm

Issue 2052513002: Read characteristic implementation on macOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@characteristicscan_servicescan_cleanup
Patch Set: Removing ReadRemoteCharacteristic_AfterDeleted test 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/bluetooth_remote_gatt_service_mac.mm
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_mac.mm b/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
index f2b17d755817bba373126509a1639043655c2d41..85fec39b33947a06d1021c1441bc476db82f11e2 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
+++ b/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
@@ -119,6 +119,17 @@ void BluetoothRemoteGattServiceMac::DidDiscoverCharacteristics() {
GetMacAdapter()->NotifyGattServiceChanged(this);
}
+void BluetoothRemoteGattServiceMac::DidReadValue(
+ CBCharacteristic* characteristic,
+ NSError* error) {
+ BluetoothRemoteGattCharacteristicMac* gatt_characteristic =
+ GetBluetoothRemoteGattCharacteristicMac(characteristic);
+ if (!gatt_characteristic) {
+ return;
+ }
+ gatt_characteristic->DidReadValue(error);
+}
+
bool BluetoothRemoteGattServiceMac::IsDiscoveryComplete() {
return is_discovery_complete_;
}

Powered by Google App Engine
This is Rietveld 408576698