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() - |