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

Unified Diff: chrome/utility/importer/nss_decryptor.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « chrome/utility/importer/ie_importer_win.cc ('k') | chrome/utility/media_galleries/picasa_albums_indexer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/importer/nss_decryptor.cc
diff --git a/chrome/utility/importer/nss_decryptor.cc b/chrome/utility/importer/nss_decryptor.cc
index 01bdb0ab351fa4753b7e661273e21874fca4cbce..3f5a993849bb68ead4ff7ce8e0ce804e5d562205 100644
--- a/chrome/utility/importer/nss_decryptor.cc
+++ b/chrome/utility/importer/nss_decryptor.cc
@@ -121,8 +121,8 @@ void NSSDecryptor::ParseSignons(
forms->clear();
// Splits the file content into lines.
- std::vector<std::string> lines;
- base::SplitString(content, '\n', &lines);
+ std::vector<std::string> lines = base::SplitString(
+ content, "\n", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
// The first line is the file version. We skip the unknown versions.
if (lines.empty())
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | chrome/utility/media_galleries/picasa_albums_indexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698