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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 1274123003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no media changes 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 | « google_apis/gaia/gaia_auth_util.cc ('k') | gpu/config/gpu_control_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 6f6cf634988290171eed5414506690076493cec8..b8737fc40e7a507cc7cb67bf015c727a56c6d6b0 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -83,11 +83,11 @@ class StringSet {
void StringToWorkarounds(
const std::string& types, FeatureInfo::Workarounds* workarounds) {
DCHECK(workarounds);
- std::vector<std::string> pieces;
- base::SplitString(types, ',', &pieces);
- for (size_t i = 0; i < pieces.size(); ++i) {
+ for (const base::StringPiece& piece :
+ base::SplitStringPiece(
+ types, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
int number = 0;
- bool succeed = base::StringToInt(pieces[i], &number);
+ bool succeed = base::StringToInt(piece, &number);
DCHECK(succeed);
switch (number) {
#define GPU_OP(type, name) \
« no previous file with comments | « google_apis/gaia/gaia_auth_util.cc ('k') | gpu/config/gpu_control_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698