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

Unified Diff: trunk/src/device/bluetooth/bluetooth_device_chromeos.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/device/bluetooth/bluetooth_device_chromeos.cc
===================================================================
--- trunk/src/device/bluetooth/bluetooth_device_chromeos.cc (revision 261569)
+++ trunk/src/device/bluetooth/bluetooth_device_chromeos.cc (working copy)
@@ -219,15 +219,7 @@
GetProperties(object_path_);
DCHECK(properties);
- std::vector<device::BluetoothUUID> uuids;
- const std::vector<std::string> &dbus_uuids = properties->uuids.value();
- for (std::vector<std::string>::const_iterator iter = dbus_uuids.begin();
- iter != dbus_uuids.end(); ++iter) {
- device::BluetoothUUID uuid(*iter);
- DCHECK(uuid.IsValid());
- uuids.push_back(uuid);
- }
- return uuids;
+ return properties->uuids.value();
}
bool BluetoothDeviceChromeOS::ExpectingPinCode() const {
@@ -352,7 +344,7 @@
}
void BluetoothDeviceChromeOS::ConnectToService(
- const device::BluetoothUUID& service_uuid,
+ const std::string& service_uuid,
const SocketCallback& callback) {
// TODO(keybuk): implement
callback.Run(scoped_refptr<device::BluetoothSocket>());
@@ -365,11 +357,11 @@
BluetoothProfileChromeOS* profile_chromeos =
static_cast<BluetoothProfileChromeOS*>(profile);
VLOG(1) << object_path_.value() << ": Connecting profile: "
- << profile_chromeos->uuid().canonical_value();
+ << profile_chromeos->uuid();
DBusThreadManager::Get()->GetBluetoothDeviceClient()->
ConnectProfile(
object_path_,
- profile_chromeos->uuid().canonical_value(),
+ profile_chromeos->uuid(),
base::Bind(
&BluetoothDeviceChromeOS::OnConnectProfile,
weak_ptr_factory_.GetWeakPtr(),
@@ -575,7 +567,7 @@
BluetoothProfileChromeOS* profile_chromeos =
static_cast<BluetoothProfileChromeOS*>(profile);
VLOG(1) << object_path_.value() << ": Profile connected: "
- << profile_chromeos->uuid().canonical_value();
+ << profile_chromeos->uuid();
callback.Run();
}
@@ -587,7 +579,7 @@
BluetoothProfileChromeOS* profile_chromeos =
static_cast<BluetoothProfileChromeOS*>(profile);
VLOG(1) << object_path_.value() << ": Profile connection failed: "
- << profile_chromeos->uuid().canonical_value() << ": "
+ << profile_chromeos->uuid() << ": "
<< error_name << ": " << error_message;
error_callback.Run();
}
« no previous file with comments | « trunk/src/device/bluetooth/bluetooth_device_chromeos.h ('k') | trunk/src/device/bluetooth/bluetooth_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698