Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1187)

Unified Diff: extensions/browser/api/bluetooth/bluetooth_api.cc

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « extensions/browser/api/bluetooth/bluetooth_api.h ('k') | extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698