| Index: extensions/browser/api/bluetooth/bluetooth_api.cc
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/extensions/browser/api/bluetooth/bluetooth_api.cc
|
| similarity index 91%
|
| rename from chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| rename to extensions/browser/api/bluetooth/bluetooth_api.cc
|
| index 12b61540c2736abfd653e4f024d4959479777ebc..2e1e4bc718008829a1e4f57f5e73ac48eeb71220 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| +++ b/extensions/browser/api/bluetooth/bluetooth_api.cc
|
| @@ -2,21 +2,20 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/extensions/api/bluetooth/bluetooth_api.h"
|
| +#include "extensions/browser/api/bluetooth/bluetooth_api.h"
|
|
|
| #include <string>
|
|
|
| #include "base/bind_helpers.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.h"
|
| -#include "chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h"
|
| -#include "chrome/browser/profiles/profile_manager.h"
|
| -#include "chrome/common/extensions/api/bluetooth.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| +#include "extensions/browser/api/bluetooth/bluetooth_api_utils.h"
|
| +#include "extensions/browser/api/bluetooth/bluetooth_event_router.h"
|
| #include "extensions/browser/event_router.h"
|
| +#include "extensions/common/api/bluetooth.h"
|
|
|
| using content::BrowserContext;
|
| using content::BrowserThread;
|
| @@ -24,9 +23,9 @@ using content::BrowserThread;
|
| using device::BluetoothAdapter;
|
| using device::BluetoothDevice;
|
|
|
| -namespace bluetooth = extensions::api::bluetooth;
|
| -namespace GetDevice = extensions::api::bluetooth::GetDevice;
|
| -namespace GetDevices = extensions::api::bluetooth::GetDevices;
|
| +namespace bluetooth = extensions::core_api::bluetooth;
|
| +namespace GetDevice = extensions::core_api::bluetooth::GetDevice;
|
| +namespace GetDevices = extensions::core_api::bluetooth::GetDevices;
|
|
|
| namespace {
|
|
|
| @@ -97,7 +96,7 @@ void BluetoothAPI::OnListenerRemoved(const EventListenerInfo& details) {
|
| event_router()->OnListenerRemoved();
|
| }
|
|
|
| -namespace api {
|
| +namespace core_api {
|
|
|
| BluetoothGetAdapterStateFunction::~BluetoothGetAdapterStateFunction() {}
|
|
|
| @@ -200,5 +199,5 @@ bool BluetoothStopDiscoveryFunction::DoWork(
|
| return true;
|
| }
|
|
|
| -} // namespace api
|
| +} // namespace core_api
|
| } // namespace extensions
|
|
|