Index: device/bluetooth/bluetooth_device_win.cc |
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc |
index da016f7007d146c9b5b04c554d84a33306bd173d..312f0e5d66b43dec27918d89e0ec9ff99dd43689 100644 |
--- a/device/bluetooth/bluetooth_device_win.cc |
+++ b/device/bluetooth/bluetooth_device_win.cc |
@@ -161,7 +161,7 @@ void BluetoothDeviceWin::Forget(const ErrorCallback& error_callback) { |
} |
void BluetoothDeviceWin::ConnectToService( |
- const std::string& service_uuid, |
+ const device::BluetoothUUID& service_uuid, |
const SocketCallback& callback) { |
for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); |
iter != service_record_list_.end(); |
@@ -202,11 +202,11 @@ void BluetoothDeviceWin::ClearOutOfBandPairingData( |
} |
const BluetoothServiceRecord* BluetoothDeviceWin::GetServiceRecord( |
- const std::string& uuid) const { |
+ const device::BluetoothUUID& uuid) const { |
for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); |
iter != service_record_list_.end(); |
++iter) { |
- if ((*iter)->uuid().compare(uuid) == 0) |
+ if ((*iter)->uuid() == uuid) |
return *iter; |
} |
return NULL; |