Index: device/bluetooth/bluetooth_adapter_chromeos.h |
diff --git a/device/bluetooth/bluetooth_adapter_chromeos.h b/device/bluetooth/bluetooth_adapter_chromeos.h |
index 0bcd6f741fe3e52368fa1ce2f421971f3a3d8057..06a1e9ffc2bb7f011fca92675f43f00dd9ca7865 100644 |
--- a/device/bluetooth/bluetooth_adapter_chromeos.h |
+++ b/device/bluetooth/bluetooth_adapter_chromeos.h |
@@ -44,6 +44,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS |
static base::WeakPtr<BluetoothAdapter> CreateAdapter(); |
// BluetoothAdapter: |
+ void OnDBusThreadManagerShutdown() override; |
void DeleteOnCorrectThread() const override; |
virtual void AddObserver( |
device::BluetoothAdapter::Observer* observer) override; |
@@ -241,6 +242,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS |
// ended (with either success or failure). |
void ProcessQueuedDiscoveryRequests(); |
+ // Set in |OnDBusThreadManagerShutdown()|, makes IsPresent()| return false. |
+ bool dbus_is_shutdown_; |
+ |
// Number of discovery sessions that have been added. |
int num_discovery_sessions_; |