Index: components/proximity_auth/bluetooth_util_chromeos.cc |
diff --git a/components/proximity_auth/bluetooth_util_chromeos.cc b/components/proximity_auth/bluetooth_util_chromeos.cc |
index 86a0758fc913580f2287e14bcca444c9a842cb59..6a281fdd56c4576fc5df4af23ea3b7e574a0b0dd 100644 |
--- a/components/proximity_auth/bluetooth_util_chromeos.cc |
+++ b/components/proximity_auth/bluetooth_util_chromeos.cc |
@@ -73,8 +73,8 @@ bool BluetoothAddressToBdaddr(const std::string& address, bdaddr_t* result) { |
if (canonical_address.empty()) |
return false; |
- std::vector<std::string> octets; |
- base::SplitString(canonical_address, ':', &octets); |
+ std::vector<base::StringPiece> octets = base::SplitStringPiece( |
+ canonical_address, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
DCHECK_EQ(octets.size(), 6U); |
// BlueZ expects the octets in the reverse order. |