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

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

Issue 459103005: Introduce new PasswordForm attributes for Credential Management API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mike's comment Created 6 years, 4 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 0d5345fdeda33105d7cc18802f3b06de83b3618a..3730273afad0b1ec25d2e7e3e36dc315bc1994ee 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -18,7 +18,8 @@ PasswordForm::PasswordForm()
blacklisted_by_user(false),
type(TYPE_MANUAL),
times_used(0),
- use_additional_authentication(false) {
+ use_additional_authentication(false),
+ is_zero_click(false) {
}
PasswordForm::~PasswordForm() {
@@ -49,7 +50,11 @@ bool PasswordForm::operator==(const PasswordForm& form) const {
type == form.type &&
times_used == form.times_used &&
use_additional_authentication == form.use_additional_authentication &&
- form_data == form.form_data;
+ form_data == form.form_data &&
+ display_name == form.display_name &&
+ avatar_url == form.avatar_url &&
+ federation_url == form.federation_url &&
+ is_zero_click == form.is_zero_click;
}
bool PasswordForm::operator!=(const PasswordForm& form) const {
@@ -80,7 +85,11 @@ std::ostream& operator<<(std::ostream& os, const PasswordForm& form) {
<< " times_used: " << form.times_used
<< " use additional authentication: "
<< form.use_additional_authentication
- << " form_data: " << form.form_data;
+ << " form_data: " << form.form_data
+ << " display_name: " << base::UTF16ToUTF8(form.display_name)
+ << " avatar_url: " << form.avatar_url
+ << " federation_url: " << form.federation_url
+ << " is_zero_click: " << form.is_zero_click;
}
} // namespace autofill
« no previous file with comments | « components/autofill/core/common/password_form.h ('k') | components/password_manager/core/browser/login_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698