Index: gpu/config/gpu_info_collector_linux.cc |
diff --git a/gpu/config/gpu_info_collector_linux.cc b/gpu/config/gpu_info_collector_linux.cc |
index 976aff6a50293efa6c17200d9ba2941e56379fbe..e93a79c42ebdf7289e1729f0255dab90b77d88b8 100644 |
--- a/gpu/config/gpu_info_collector_linux.cc |
+++ b/gpu/config/gpu_info_collector_linux.cc |
@@ -247,8 +247,9 @@ CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) { |
std::string gl_version = gpu_info->gl_version; |
if (base::StartsWith(gl_version, "OpenGL ES", base::CompareCase::SENSITIVE)) |
gl_version = gl_version.substr(10); |
- std::vector<std::string> pieces; |
- base::SplitStringAlongWhitespace(gl_version, &pieces); |
+ std::vector<std::string> pieces = base::SplitString( |
+ gl_version, base::kWhitespaceASCII, base::KEEP_WHITESPACE, |
+ base::SPLIT_WANT_NONEMPTY); |
// In linux, the gl version string might be in the format of |
// GLVersion DriverVendor DriverVersion |
if (pieces.size() < 3) |