| Index: device/bluetooth/bluetooth_adapter_factory.cc
|
| diff --git a/device/bluetooth/bluetooth_adapter_factory.cc b/device/bluetooth/bluetooth_adapter_factory.cc
|
| index 33950531312af20a9c055c817a7e4c031c2a37e7..08409c60e816a7106a2b53fb444bd0bb528defed 100644
|
| --- a/device/bluetooth/bluetooth_adapter_factory.cc
|
| +++ b/device/bluetooth/bluetooth_adapter_factory.cc
|
| @@ -95,6 +95,13 @@ void BluetoothAdapterFactory::GetAdapter(const AdapterCallback& callback) {
|
| }
|
|
|
| // static
|
| +void BluetoothAdapterFactory::Shutdown() {
|
| + if (default_adapter.Get()) {
|
| + default_adapter.Get()->Shutdown();
|
| + }
|
| +}
|
| +
|
| +// static
|
| void BluetoothAdapterFactory::SetAdapterForTesting(
|
| scoped_refptr<BluetoothAdapter> adapter) {
|
| default_adapter.Get() = adapter->GetWeakPtrForTesting();
|
|
|