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

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

Issue 139253004: Add the database field to require additional auth for autofilling passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment to IPC message about excluded field. Created 6 years, 10 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 d6fe535e581fa0c98bbff55698f31987f8d1108d..e7ae4f564e9a0c089a42f382bb83c3bd39604bc3 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -17,7 +17,8 @@ PasswordForm::PasswordForm()
preferred(false),
blacklisted_by_user(false),
type(TYPE_MANUAL),
- times_used(0) {
+ times_used(0),
+ use_additional_authentication(false) {
}
PasswordForm::~PasswordForm() {
@@ -46,6 +47,7 @@ bool PasswordForm::operator==(const PasswordForm& form) const {
blacklisted_by_user == form.blacklisted_by_user &&
type == form.type &&
times_used == form.times_used &&
+ use_additional_authentication == form.use_additional_authentication &&
form_data == form.form_data;
}
@@ -74,6 +76,8 @@ std::ostream& operator<<(std::ostream& os, const PasswordForm& form) {
<< " date_created: " << form.date_created.ToDoubleT()
<< " type: " << form.type
<< " times_used: " << form.times_used
+ << " use additional authentication: "
+ << form.use_additional_authentication
<< " form_data: " << form.form_data;
}
« 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