Index: skia/ext/image_operations_bench.cc |
diff --git a/skia/ext/image_operations_bench.cc b/skia/ext/image_operations_bench.cc |
index b5464c64d37f712f80d5894bfb70d842d34fb516..9b2667fec35dcd223e52c0ed20ca4d30bc27db78 100644 |
--- a/skia/ext/image_operations_bench.cc |
+++ b/skia/ext/image_operations_bench.cc |
@@ -119,8 +119,8 @@ class Dimensions { |
// On failure, will set its state in such a way that IsValid will return |
// false. |
void FromString(const std::string& arg) { |
- std::vector<std::string> strings; |
- base::SplitString(std::string(arg), 'x', &strings); |
+ std::vector<base::StringPiece> strings = base::SplitStringPiece( |
+ arg, "x", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
if (strings.size() != 2 || |
base::StringToInt(strings[0], &width_) == false || |
base::StringToInt(strings[1], &height_) == false) { |