Index: ui/gfx/font_list.cc |
diff --git a/ui/gfx/font_list.cc b/ui/gfx/font_list.cc |
index f9b34a674e1f7a72d524b854c16d7a4260512f7e..7bdf903140b4f93ccd5d66f8d477c2ee59bd4f02 100644 |
--- a/ui/gfx/font_list.cc |
+++ b/ui/gfx/font_list.cc |
@@ -34,17 +34,15 @@ |
DCHECK(style_out); |
DCHECK(size_pixels_out); |
- *families_out = base::SplitString( |
- description, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ base::SplitString(description, ',', families_out); |
if (families_out->empty()) |
return false; |
for (auto& family : *families_out) |
base::TrimWhitespaceASCII(family, base::TRIM_ALL, &family); |
// The last item is "[STYLE1] [STYLE2] [...] SIZE". |
- std::vector<std::string> styles = base::SplitString( |
- families_out->back(), base::kWhitespaceASCII, |
- base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); |
+ std::vector<std::string> styles; |
+ base::SplitStringAlongWhitespace(families_out->back(), &styles); |
families_out->pop_back(); |
if (styles.empty()) |
return false; |