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

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: fixes 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..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.
« no previous file with comments | « components/password_manager/core/browser/password_form_manager.cc ('k') | components/query_parser/snippet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698