Index: gpu/config/gpu_util.cc |
diff --git a/gpu/config/gpu_util.cc b/gpu/config/gpu_util.cc |
index 80a99fba4e681c87126918fc8c6ed07aabae2755..5d6798816989c7b00564bebef3b5a07db2804a2a 100644 |
--- a/gpu/config/gpu_util.cc |
+++ b/gpu/config/gpu_util.cc |
@@ -34,11 +34,11 @@ |
void StringToIntSet(const std::string& str, std::set<int>* list) { |
DCHECK(list); |
- for (const base::StringPiece& piece : |
- base::SplitStringPiece(str, ",", base::TRIM_WHITESPACE, |
- base::SPLIT_WANT_ALL)) { |
+ std::vector<std::string> pieces; |
+ base::SplitString(str, ',', &pieces); |
+ for (size_t i = 0; i < pieces.size(); ++i) { |
int number = 0; |
- bool succeed = base::StringToInt(piece, &number); |
+ bool succeed = base::StringToInt(pieces[i], &number); |
DCHECK(succeed); |
list->insert(number); |
} |