Index: gpu/config/gpu_control_list.cc |
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc |
index 2e44e3db50c60adc12f694465910fa7a493f517e..1fbf0b6f5aa2427243a9150757b800afe5fe79b5 100644 |
--- a/gpu/config/gpu_control_list.cc |
+++ b/gpu/config/gpu_control_list.cc |
@@ -25,9 +25,7 @@ |
char splitter, |
std::vector<std::string>* version) { |
DCHECK(version); |
- *version = base::SplitString( |
- version_string, std::string(1, splitter), |
- base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ base::SplitString(version_string, splitter, version); |
if (version->size() == 0) |
return false; |
// If the splitter is '-', we assume it's a date with format "mm-dd-yyyy"; |
@@ -1030,8 +1028,8 @@ |
if (gl_version_info_.get() == NULL && gl_type_ == kGLTypeNone) |
return false; |
- std::vector<std::string> segments = base::SplitString( |
- gl_version, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ std::vector<std::string> segments; |
+ base::SplitString(gl_version, ' ', &segments); |
std::string number; |
GLType gl_type = kGLTypeNone; |
if (segments.size() > 2 && |