diff options
author | brettw <brettw@chromium.org> | 2015-07-23 16:23:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-23 23:25:00 +0000 |
commit | 8be197d144c267c6a7c1b207a41267ac6c971712 (patch) | |
tree | 22d99a93dc2f060d8637abbea5fcc869cc602686 /components/proximity_auth | |
parent | a36acb95c375d4de17277cadbe8d56b45a80d5ce (diff) | |
download | chromium_src-8be197d144c267c6a7c1b207a41267ac6c971712.zip chromium_src-8be197d144c267c6a7c1b207a41267ac6c971712.tar.gz chromium_src-8be197d144c267c6a7c1b207a41267ac6c971712.tar.bz2 |
Update SplitString calls in components
This converts calls from the old form to the new form. Some calls that iterated over the results were changed to a range-based for loop with an inline call to SplitString. Some places were changed to use StringPieces when it was safe to do so.
Review URL: https://codereview.chromium.org/1234973004
Cr-Commit-Position: refs/heads/master@{#340209}
Diffstat (limited to 'components/proximity_auth')
-rw-r--r-- | components/proximity_auth/bluetooth_util_chromeos.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/proximity_auth/bluetooth_util_chromeos.cc b/components/proximity_auth/bluetooth_util_chromeos.cc index 86a0758f..6a281fd 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. |