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

Unified Diff: trunk/src/device/bluetooth/bluetooth_profile_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_profile_chromeos.cc
===================================================================
--- trunk/src/device/bluetooth/bluetooth_profile_chromeos.cc (revision 261569)
+++ trunk/src/device/bluetooth/bluetooth_profile_chromeos.cc (working copy)
@@ -69,13 +69,13 @@
}
void BluetoothProfileChromeOS::Init(
- const device::BluetoothUUID& uuid,
+ const std::string& uuid,
const device::BluetoothProfile::Options& options,
const ProfileCallback& callback) {
DCHECK(object_path_.value().empty());
DCHECK(profile_.get() == NULL);
- if (!uuid.IsValid()) {
+ if (!BluetoothDevice::IsUUIDValid(uuid)) {
callback.Run(NULL);
return;
}
@@ -83,7 +83,7 @@
uuid_ = uuid;
options_.name = options.name;
- options_.service = uuid.canonical_value();
+ options_.service = uuid;
options_.channel = options.channel;
options_.psm = options.psm;
options_.require_authentication = options.require_authentication;
@@ -95,7 +95,7 @@
// The object path is relatively meaningless, but has to be unique, so we
// use the UUID of the profile.
std::string uuid_path;
- base::ReplaceChars(uuid.canonical_value(), ":-", "_", &uuid_path);
+ base::ReplaceChars(uuid, ":-", "_", &uuid_path);
object_path_ = dbus::ObjectPath("/org/chromium/bluetooth_profile/" +
uuid_path);
@@ -143,7 +143,7 @@
DBusThreadManager::Get()->GetBluetoothProfileManagerClient()->
RegisterProfile(
object_path_,
- uuid_.canonical_value(),
+ uuid_,
options_,
base::Bind(&BluetoothProfileChromeOS::OnInternalRegisterProfile,
weak_ptr_factory_.GetWeakPtr()),
@@ -162,7 +162,7 @@
DBusThreadManager::Get()->GetBluetoothProfileManagerClient()->
RegisterProfile(
object_path_,
- uuid_.canonical_value(),
+ uuid_,
options_,
base::Bind(&BluetoothProfileChromeOS::OnRegisterProfile,
weak_ptr_factory_.GetWeakPtr(),

Powered by Google App Engine
This is Rietveld 408576698