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

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

Issue 1161023008: Suggest to fill password change forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tiny fix 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/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 e5edaca902396f6e61950f167ee485816173e428..af4529add6ae150324710ae02b8ba04751a07889 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -90,6 +90,11 @@ bool PasswordForm::IsPublicSuffixMatch() const {
return !original_signon_realm.empty();
}
+bool PasswordForm::IsPossibleChangePasswordForm() const {
+ return !new_password_element.empty() &&
+ layout != PasswordForm::Layout::LAYOUT_LOGIN_AND_SIGNUP;
+}
+
bool PasswordForm::operator==(const PasswordForm& form) const {
return scheme == form.scheme &&
signon_realm == form.signon_realm &&

Powered by Google App Engine
This is Rietveld 408576698