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/favicon_base | |
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/favicon_base')
-rw-r--r-- | components/favicon_base/fallback_icon_url_parser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/favicon_base/fallback_icon_url_parser.cc b/components/favicon_base/fallback_icon_url_parser.cc index ba9f2321..8855695b 100644 --- a/components/favicon_base/fallback_icon_url_parser.cc +++ b/components/favicon_base/fallback_icon_url_parser.cc @@ -74,8 +74,8 @@ bool ParsedFallbackIconPath::ParseSpecs( DCHECK(size); DCHECK(style); - std::vector<std::string> tokens; - base::SplitStringDontTrim(specs_str, ',', &tokens); + std::vector<std::string> tokens = base::SplitString( + specs_str, ",", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); if (tokens.size() != 5) // Force "," for empty fields. return false; |