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

Unified Diff: components/proximity_auth/bluetooth_util_chromeos.cc

Issue 1234973004: Update SplitString calls in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: 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..ec9396bc307d6a1b25c3e505f11b88b2b49bcd51 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::KEEP_WHITESPACE, base::SPLIT_WANT_ALL);
DCHECK_EQ(octets.size(), 6U);
// BlueZ expects the octets in the reverse order.

Powered by Google App Engine
This is Rietveld 408576698