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

Unified Diff: components/password_manager/core/browser/export/csv_writer.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/export/csv_writer.cc
diff --git a/components/password_manager/core/browser/export/csv_writer.cc b/components/password_manager/core/browser/export/csv_writer.cc
index f45683f344bfcfb461a85d21ac5dacab108e1658..b3ea46bf65076a6f5f836e718b58a6081d9af5f4 100644
--- a/components/password_manager/core/browser/export/csv_writer.cc
+++ b/components/password_manager/core/browser/export/csv_writer.cc
@@ -42,7 +42,7 @@ void CSVFormatter::AppendValue(const std::string& raw_value) {
if (raw_value.find_first_of("\r\n\",") != std::string::npos) {
output_->push_back('\"');
output_->append(raw_value);
- ReplaceSubstringsAfterOffset(
+ base::ReplaceSubstringsAfterOffset(
output_, output_->size() - raw_value.size(), "\"", "\"\"");
output_->push_back('\"');
} else {
« no previous file with comments | « components/json_schema/json_schema_validator.cc ('k') | components/password_manager/core/browser/import/csv_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698