Index: content/renderer/manifest/manifest_parser.cc |
diff --git a/content/renderer/manifest/manifest_parser.cc b/content/renderer/manifest/manifest_parser.cc |
index 780cf91a32017abab3f617228292966d58195818..6b021d2a7a30286f1cbd292e161a3c5e5f495f71 100644 |
--- a/content/renderer/manifest/manifest_parser.cc |
+++ b/content/renderer/manifest/manifest_parser.cc |
@@ -48,9 +48,8 @@ |
std::vector<gfx::Size> sizes; |
std::string sizes_str = |
base::StringToLowerASCII(base::UTF16ToUTF8(sizes_str16)); |
- std::vector<std::string> sizes_str_list = base::SplitString( |
- sizes_str, base::kWhitespaceASCII, base::KEEP_WHITESPACE, |
- base::SPLIT_WANT_NONEMPTY); |
+ std::vector<std::string> sizes_str_list; |
+ base::SplitStringAlongWhitespace(sizes_str, &sizes_str_list); |
for (size_t i = 0; i < sizes_str_list.size(); ++i) { |
std::string& size_str = sizes_str_list[i]; |
@@ -60,8 +59,8 @@ |
} |
// It is expected that [0] => width and [1] => height after the split. |
- std::vector<std::string> size_list = base::SplitString( |
- size_str, "x", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
+ std::vector<std::string> size_list; |
+ base::SplitStringDontTrim(size_str, L'x', &size_list); |
if (size_list.size() != 2) |
continue; |
if (!IsValidIconWidthOrHeight(size_list[0]) || |