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

Unified Diff: components/password_manager/core/browser/import/csv_reader.cc

Issue 1200393002: Add more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string
Patch Set: Android Created 5 years, 6 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
Index: components/password_manager/core/browser/import/csv_reader.cc
diff --git a/components/password_manager/core/browser/import/csv_reader.cc b/components/password_manager/core/browser/import/csv_reader.cc
index c2c641c911cd2ff980434e577f36ac514edb009d..b2056cfc4964300643eac89db94bc3f5feaec493 100644
--- a/components/password_manager/core/browser/import/csv_reader.cc
+++ b/components/password_manager/core/browser/import/csv_reader.cc
@@ -80,7 +80,7 @@ bool CSVParser::ParseNextCSVRow(std::vector<std::string>* fields) {
field.remove_suffix(1);
}
std::string field_copy(field.as_string());
- ReplaceSubstringsAfterOffset(&field_copy, 0, "\"\"", "\"");
+ base::ReplaceSubstringsAfterOffset(&field_copy, 0, "\"\"", "\"");
fields->push_back(field_copy);
} while (!remaining_row_piece.empty());
@@ -105,7 +105,7 @@ bool ReadCSV(base::StringPiece csv,
// Normalize EOL sequences so that we uniformly use a single LF character.
std::string normalized_csv(csv.as_string());
- ReplaceSubstringsAfterOffset(&normalized_csv, 0, "\r\n", "\n");
+ base::ReplaceSubstringsAfterOffset(&normalized_csv, 0, "\r\n", "\n");
// Read header row.
CSVParser parser(normalized_csv);
« no previous file with comments | « components/password_manager/core/browser/export/csv_writer.cc ('k') | components/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698