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

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

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test compilation error, updated comments Created 5 years, 5 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 0f369dbd750387a162f52c1c09c21a60ee6f2a5a..73bcd737eba9b79d913882ec84c3449da4027882 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -94,6 +94,10 @@ bool PasswordForm::IsPossibleChangePasswordForm() const {
layout != PasswordForm::Layout::LAYOUT_LOGIN_AND_SIGNUP;
}
+bool PasswordForm::IsPossibleChangePasswordFormWithoutUsername() const {
+ return IsPossibleChangePasswordForm() && username_element.empty();
+}
+
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