Index: device/bluetooth/bluetooth_adapter.h |
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h |
index df0621b970a7849b26119cf8a69659e4ee1c8311..09098f0ab232edc3fe8246558f8750c0289128dd 100644 |
--- a/device/bluetooth/bluetooth_adapter.h |
+++ b/device/bluetooth/bluetooth_adapter.h |
@@ -192,6 +192,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter |
// Returns a weak pointer to an existing adapter for testing purposes only. |
base::WeakPtr<BluetoothAdapter> GetWeakPtrForTesting(); |
+#if defined(OS_CHROMEOS) |
+ // Shutdown the adapter: tear down and clean up all objects owned by |
+ // BluetoothAdapter. After this call, the BluetoothAdapter will behave as if |
+ // no Bluetooth controller exists in the local system. |IsPresent| will return |
+ // false. No futher use of DBusThreadManager will be made. |
+ void OnDBusThreadManagerShutdown(); |
armansito
2015/01/16 21:57:18
If we're going to have this in BluetoothAdapter, t
scheib
2015/01/16 22:28:27
Done.
|
+#endif |
+ |
// Adds and removes observers for events on this bluetooth adapter. If |
// monitoring multiple adapters, check the |adapter| parameter of observer |
// methods to determine which adapter is issuing the event. |