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..49886a3d8f14e37d016519d97dd2ff041ca1240b 100644 |
--- a/device/bluetooth/bluetooth_socket_win.cc |
+++ b/device/bluetooth/bluetooth_socket_win.cc |
@@ -44,13 +44,11 @@ std::string IPEndPointToBluetoothAddress(const net::IPEndPoint& end_point) { |
// 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 |