Index: content/public/common/webplugininfo.cc |
diff --git a/content/public/common/webplugininfo.cc b/content/public/common/webplugininfo.cc |
index b6fedb9bd0f91897d6558f27b9059196397ec409..d12dfd744ec279c7a3ea8ed4f64ec30288d92bce 100644 |
--- a/content/public/common/webplugininfo.cc |
+++ b/content/public/common/webplugininfo.cc |
@@ -83,8 +83,8 @@ void WebPluginInfo::CreateVersionFromString( |
// Remove leading zeros from each of the version components. |
std::string no_leading_zeros_version; |
- std::vector<std::string> numbers; |
- base::SplitString(version, '.', &numbers); |
+ std::vector<std::string> numbers = base::SplitString( |
+ version, ".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
for (size_t i = 0; i < numbers.size(); ++i) { |
size_t n = numbers[i].size(); |
size_t j = 0; |