Index: device/bluetooth/bluetooth_socket_win.cc |
diff --git a/device/bluetooth/bluetooth_socket_win.cc b/device/bluetooth/bluetooth_socket_win.cc |
index 07e076498a0b3005029230e7504dc5f07f6829d4..9fd3be4bd862586e84268ead1b2985937b9757fe 100644 |
--- a/device/bluetooth/bluetooth_socket_win.cc |
+++ b/device/bluetooth/bluetooth_socket_win.cc |
@@ -39,18 +39,16 @@ const char kInvalidUUID[] = "Invalid UUID"; |
const char kWsaSetServiceError[] = "WSASetService error."; |
std::string IPEndPointToBluetoothAddress(const net::IPEndPoint& end_point) { |
- if (end_point.address().size() != net::kBluetoothAddressSize) |
+ if (end_point.address().bytes().size() != net::kBluetoothAddressSize) |
return std::string(); |
// The address is copied from BTH_ADDR field of SOCKADDR_BTH, which is a |
// 64-bit ULONGLONG that stores Bluetooth address in little-endian. Print in |
// reverse order to preserve the correct ordering. |
- return base::StringPrintf("%02X:%02X:%02X:%02X:%02X:%02X", |
- end_point.address()[5], |
- end_point.address()[4], |
- end_point.address()[3], |
- end_point.address()[2], |
- end_point.address()[1], |
- end_point.address()[0]); |
+ return base::StringPrintf( |
+ "%02X:%02X:%02X:%02X:%02X:%02X", end_point.address().bytes()[5], |
+ end_point.address().bytes()[4], end_point.address().bytes()[3], |
+ end_point.address().bytes()[2], end_point.address().bytes()[1], |
+ end_point.address().bytes()[0]); |
} |
} // namespace |