Index: device/bluetooth/bluetooth_adapter.h |
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h |
index df0621b970a7849b26119cf8a69659e4ee1c8311..f7b760bfa2987b06058e8b7e2e882a247e4dce54 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. |
+ void Shutdown(); |
+#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. |