| 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..e04df73d38b2da7c0faf30e96e6931a107ce97d4 100644
|
| --- a/device/bluetooth/bluetooth_adapter_factory.cc
|
| +++ b/device/bluetooth/bluetooth_adapter_factory.cc
|
| @@ -12,6 +12,10 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +#include "device/bluetooth/bluetooth_adapter_chromeos.h"
|
| +#endif
|
| +
|
| #if defined(OS_MACOSX)
|
| #include "base/mac/mac_util.h"
|
| #endif
|
| @@ -94,6 +98,14 @@ void BluetoothAdapterFactory::GetAdapter(const AdapterCallback& callback) {
|
|
|
| }
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +// static
|
| +void BluetoothAdapterFactory::Shutdown() {
|
| + if (default_adapter.Get())
|
| + default_adapter.Get().get()->Shutdown();
|
| +}
|
| +#endif
|
| +
|
| // static
|
| void BluetoothAdapterFactory::SetAdapterForTesting(
|
| scoped_refptr<BluetoothAdapter> adapter) {
|
|
|