Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: gpu/config/gpu_util.cc

Issue 1278973003: Revert of Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | media/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | media/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698