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

Unified Diff: components/autofill/core/common/password_form.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 years, 7 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/autofill/core/common/password_form.cc
diff --git a/components/autofill/core/common/password_form.cc b/components/autofill/core/common/password_form.cc
index 41ca1fc6c5069150568bcb8ca680b1d7d67f5309..e5edaca902396f6e61950f167ee485816173e428 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -160,7 +160,7 @@ std::ostream& operator<<(std::ostream& os, const PasswordForm& form) {
std::string form_as_string;
base::JSONWriter::WriteWithOptions(
- &form_json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &form_as_string);
+ form_json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &form_as_string);
base::TrimWhitespaceASCII(form_as_string, base::TRIM_ALL, &form_as_string);
return os << "PasswordForm(" << form_as_string << ")";
}

Powered by Google App Engine
This is Rietveld 408576698