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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 2826383002: bluetooth: Make in progress errors consistent across android
Patch Set: Fix windows Created 3 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_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 186e7f47cb6316d67d185ac8f5573b1d2e3aca47..2a32a54114df6d77948570338164b19cf62f8b88 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -74,6 +74,7 @@ void BluetoothDevice::DeviceUUIDs::UpdateDeviceUUIDs() {
BluetoothDevice::BluetoothDevice(BluetoothAdapter* adapter)
: adapter_(adapter),
gatt_services_discovery_complete_(false),
+ pending_gatt_operation_(false),
last_update_time_(base::Time()) {}
BluetoothDevice::~BluetoothDevice() {
@@ -516,6 +517,14 @@ void BluetoothDevice::RemoveGattConnection(
DisconnectGatt();
}
+bool BluetoothDevice::HasPendingGattOperation() const {
+ return pending_gatt_operation_;
+}
+
+void BluetoothDevice::SetPendingGattOperation(bool pending) {
+ pending_gatt_operation_ = pending;
+}
+
void BluetoothDevice::SetAsExpiredForTesting() {
last_update_time_ =
base::Time::NowFromSystemTime() -

Powered by Google App Engine
This is Rietveld 408576698