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

Unified Diff: chrome/browser/password_manager/password_form_data.cc

Issue 23857010: Revert "Revert 223907 "[password generation] Upload possible account cre..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: chrome/browser/password_manager/password_form_data.cc
diff --git a/chrome/browser/password_manager/password_form_data.cc b/chrome/browser/password_manager/password_form_data.cc
index 458de6f3550d364bbc24d221aaa9717243ff9aa1..14beef6d67181d62444231f08d5f793ef685cb13 100644
--- a/chrome/browser/password_manager/password_form_data.cc
+++ b/chrome/browser/password_manager/password_form_data.cc
@@ -37,38 +37,6 @@ PasswordForm* CreatePasswordFormFromData(
return form;
}
-bool operator==(const PasswordForm& lhs, const PasswordForm& rhs) {
- return (lhs.scheme == rhs.scheme &&
- lhs.signon_realm == rhs.signon_realm &&
- lhs.origin == rhs.origin &&
- lhs.action == rhs.action &&
- lhs.submit_element == rhs.submit_element &&
- lhs.username_element == rhs.username_element &&
- lhs.password_element == rhs.password_element &&
- lhs.username_value == rhs.username_value &&
- lhs.password_value == rhs.password_value &&
- lhs.blacklisted_by_user == rhs.blacklisted_by_user &&
- lhs.preferred == rhs.preferred &&
- lhs.ssl_valid == rhs.ssl_valid &&
- lhs.date_created == rhs.date_created);
-}
-
-std::ostream& operator<<(std::ostream& os, const PasswordForm& form) {
- return os << "scheme: " << form.scheme << std::endl
- << "signon_realm: " << form.signon_realm << std::endl
- << "origin: " << form.origin << std::endl
- << "action: " << form.action << std::endl
- << "submit_element: " << form.submit_element << std::endl
- << "username_elem: " << form.username_element << std::endl
- << "password_elem: " << form.password_element << std::endl
- << "username_value: " << form.username_value << std::endl
- << "password_value: " << form.password_value << std::endl
- << "blacklisted: " << form.blacklisted_by_user << std::endl
- << "preferred: " << form.preferred << std::endl
- << "ssl_valid: " << form.ssl_valid << std::endl
- << "date_created: " << form.date_created.ToDoubleT();
-}
-
typedef std::set<const autofill::PasswordForm*> SetOfForms;
bool ContainsSamePasswordFormsPtr(
« no previous file with comments | « chrome/browser/password_manager/password_form_data.h ('k') | chrome/browser/password_manager/password_form_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698