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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_api_utils.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_utils.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc b/extensions/browser/api/bluetooth/bluetooth_api_utils.cc
similarity index 95%
rename from chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
rename to extensions/browser/api/bluetooth/bluetooth_api_utils.cc
index e13ec1b68129b75fd7b614baef51f1be8825efb5..58a5d0a9d0e9e07a349719a434710f37e8c21f6f 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_api_utils.cc
@@ -2,15 +2,15 @@
// 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_utils.h"
+#include "extensions/browser/api/bluetooth/bluetooth_api_utils.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/common/extensions/api/bluetooth.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_device.h"
+#include "extensions/common/api/bluetooth.h"
-namespace bluetooth = extensions::api::bluetooth;
+namespace bluetooth = extensions::core_api::bluetooth;
using device::BluetoothDevice;
using bluetooth::VendorIdSource;
@@ -88,7 +88,7 @@ bool ConvertDeviceTypeToApi(const BluetoothDevice::DeviceType& input,
} // namespace
namespace extensions {
-namespace api {
+namespace core_api {
namespace bluetooth {
void BluetoothDeviceToApiDevice(const device::BluetoothDevice& device,
@@ -143,5 +143,5 @@ void PopulateAdapterState(const device::BluetoothAdapter& adapter,
}
} // namespace bluetooth
-} // namespace api
+} // namespace core_api
} // namespace extensions
« no previous file with comments | « extensions/browser/api/bluetooth/bluetooth_api_utils.h ('k') | extensions/browser/api/bluetooth/bluetooth_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698