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

Unified Diff: content/public/common/webplugininfo.cc

Issue 1272823003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/public/browser/desktop_media_id.cc ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/public/browser/desktop_media_id.cc ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698