From 8be197d144c267c6a7c1b207a41267ac6c971712 Mon Sep 17 00:00:00 2001 From: brettw Date: Thu, 23 Jul 2015 16:23:31 -0700 Subject: 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} --- components/favicon_base/fallback_icon_url_parser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/favicon_base') 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 tokens; - base::SplitStringDontTrim(specs_str, ',', &tokens); + std::vector tokens = base::SplitString( + specs_str, ",", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); if (tokens.size() != 5) // Force "," for empty fields. return false; -- cgit v1.1