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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_android.h

Issue 1779083002: bluetooth: Test & make StartNotifySession reentrant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-notify-followup-descriptors-
Patch Set: addressed ortuno comments Created 4 years, 9 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_characteristic_android.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_android.h b/device/bluetooth/bluetooth_remote_gatt_characteristic_android.h
index 606b7d4ffa4f0da711801abe434d7e92e0cc9826..fa77764e0e0bf3485bfa15cde9f414b827cbcf46 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_android.h
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_android.h
@@ -7,8 +7,6 @@
#include <stdint.h>
-#include <queue>
-
#include "base/android/jni_android.h"
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
@@ -134,7 +132,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicAndroid
// StartNotifySession callbacks and pending state.
typedef std::pair<NotifySessionCallback, ErrorCallback>
PendingStartNotifyCall;
- std::queue<PendingStartNotifyCall> pending_start_notify_calls_;
+ std::vector<PendingStartNotifyCall> pending_start_notify_calls_;
// ReadRemoteCharacteristic callbacks and pending state.
bool read_pending_ = false;

Powered by Google App Engine
This is Rietveld 408576698