Index: gpu/config/gpu_info_collector.cc |
diff --git a/gpu/config/gpu_info_collector.cc b/gpu/config/gpu_info_collector.cc |
index 55a294731e4d8d9c49cede0586ea714b64b9eeac..23da95e26ee5ae9b2c0bad95bff889b4b11a47e8 100644 |
--- a/gpu/config/gpu_info_collector.cc |
+++ b/gpu/config/gpu_info_collector.cc |
@@ -68,8 +68,8 @@ std::string GetVersionFromString(const std::string& version_string) { |
sub_string = version_string.substr(begin, end - begin); |
else |
sub_string = version_string.substr(begin); |
- std::vector<std::string> pieces; |
- base::SplitString(sub_string, '.', &pieces); |
+ std::vector<std::string> pieces = base::SplitString( |
+ sub_string, ".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
if (pieces.size() >= 2) |
return pieces[0] + "." + pieces[1]; |
} |