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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_win.cc

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move comments Created 4 years, 8 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_win.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_win.cc b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
index 84127ed51a795d9ece41a595ef34c6156973fabf..7236f82ca555a1176a777f0df20e61105aee64ee 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_win.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
@@ -50,6 +50,8 @@ BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin(
BluetoothRemoteGattServiceWin::~BluetoothRemoteGattServiceWin() {
DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ ClearIncludedCharacteristics();
+
adapter_->NotifyGattServiceRemoved(this);
}
@@ -245,6 +247,7 @@ bool BluetoothRemoteGattServiceWin::DoesCharacteristicExist(
void BluetoothRemoteGattServiceWin::RemoveIncludedCharacteristic(
std::string identifier) {
discovery_completed_included_charateristics_.erase(identifier);
+ included_characteristics_[identifier].reset();
included_characteristics_.erase(identifier);
}
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_descriptor_win.h ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698