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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm

Issue 2357993002: Don't send a value changed notification when a characteristic is written (Closed)
Patch Set: Adding #if to avoid the test for windows (and with the todo and the bug number) Created 4 years, 2 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
index db28fb9df011cd396d3b02e91cee3369fc45dede..b42f22cde58b07530016a528d0b6525415b974f6 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
@@ -316,11 +316,6 @@ void BluetoothRemoteGattCharacteristicMac::DidWriteValue(NSError* error) {
callbacks.second.Run(error_code);
return;
}
- NSData* nsdata_value = cb_characteristic_.get().value;
- const uint8_t* buffer = static_cast<const uint8_t*>(nsdata_value.bytes);
- std::vector<uint8_t> gatt_value(buffer, buffer + nsdata_value.length);
- gatt_service_->GetMacAdapter()->NotifyGattCharacteristicValueChanged(this,
- value_);
callbacks.first.Run();
}
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698