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

Unified Diff: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc (revision 261569)
+++ trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc (working copy)
@@ -110,7 +110,7 @@
}
void BluetoothEventRouter::AddProfile(
- const device::BluetoothUUID& uuid,
+ const std::string& uuid,
const std::string& extension_id,
device::BluetoothProfile* bluetooth_profile) {
DCHECK(!HasProfile(uuid));
@@ -118,7 +118,7 @@
bluetooth_profile_map_[uuid] = record;
}
-void BluetoothEventRouter::RemoveProfile(const device::BluetoothUUID& uuid) {
+void BluetoothEventRouter::RemoveProfile(const std::string& uuid) {
BluetoothProfileMap::iterator iter = bluetooth_profile_map_.find(uuid);
if (iter != bluetooth_profile_map_.end()) {
device::BluetoothProfile* bluetooth_profile = iter->second.profile;
@@ -127,7 +127,7 @@
}
}
-bool BluetoothEventRouter::HasProfile(const device::BluetoothUUID& uuid) const {
+bool BluetoothEventRouter::HasProfile(const std::string& uuid) const {
return bluetooth_profile_map_.find(uuid) != bluetooth_profile_map_.end();
}
@@ -176,7 +176,7 @@
}
device::BluetoothProfile* BluetoothEventRouter::GetProfile(
- const device::BluetoothUUID& uuid) const {
+ const std::string& uuid) const {
BluetoothProfileMap::const_iterator iter = bluetooth_profile_map_.find(uuid);
if (iter != bluetooth_profile_map_.end())
return iter->second.profile;
@@ -193,7 +193,7 @@
void BluetoothEventRouter::DispatchConnectionEvent(
const std::string& extension_id,
- const device::BluetoothUUID& uuid,
+ const std::string& uuid,
const device::BluetoothDevice* device,
scoped_refptr<device::BluetoothSocket> socket) {
if (!HasProfile(uuid))
@@ -202,7 +202,7 @@
int socket_id = RegisterSocket(extension_id, socket);
bluetooth::Socket result_socket;
bluetooth::BluetoothDeviceToApiDevice(*device, &result_socket.device);
- result_socket.profile.uuid = uuid.canonical_value();
+ result_socket.profile.uuid = uuid;
result_socket.id = socket_id;
scoped_ptr<base::ListValue> args =

Powered by Google App Engine
This is Rietveld 408576698