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

Unified Diff: gpu/config/gpu_util.cc

Issue 2022983003: Roll base to 5e00da80f6adb7082d1c0e88d3274cf87cc43bc5 and tonic to f7acabb8fa6c91124486a41194eac3cd… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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
Index: gpu/config/gpu_util.cc
diff --git a/gpu/config/gpu_util.cc b/gpu/config/gpu_util.cc
index 5d6798816989c7b00564bebef3b5a07db2804a2a..96ddedf62f5402459d158a63d65d7ad4d63c658f 100644
--- a/gpu/config/gpu_util.cc
+++ b/gpu/config/gpu_util.cc
@@ -34,8 +34,8 @@ std::string IntSetToString(const std::set<int>& list) {
void StringToIntSet(const std::string& str, std::set<int>* list) {
DCHECK(list);
- std::vector<std::string> pieces;
- base::SplitString(str, ',', &pieces);
+ std::vector<std::string> pieces =
+ base::SplitString(str, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
for (size_t i = 0; i < pieces.size(); ++i) {
int number = 0;
bool succeed = base::StringToInt(pieces[i], &number);
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698