Index: components/password_manager/core/browser/password_form_manager.cc |
diff --git a/components/password_manager/core/browser/password_form_manager.cc b/components/password_manager/core/browser/password_form_manager.cc |
index 3059cef7f297e8a440b70421b61945e20ddaa6ff..7eb51e5f83a23d80510bbdd058e119ad5ee96c21 100644 |
--- a/components/password_manager/core/browser/password_form_manager.cc |
+++ b/components/password_manager/core/browser/password_form_manager.cc |
@@ -222,16 +222,6 @@ bool PasswordFormManager::IsPendingCredentialsPublicSuffixMatch() const { |
return pending_credentials_.IsPublicSuffixMatch(); |
} |
-bool PasswordFormManager::HasValidPasswordForm() const { |
- DCHECK(state_ == MATCHING_PHASE || state_ == POST_MATCHING_PHASE) << state_; |
- // Non-HTML password forms (primarily HTTP and FTP autentication) |
- // do not contain username_element and password_element values. |
- if (observed_form_.scheme != PasswordForm::SCHEME_HTML) |
- return true; |
- return !observed_form_.password_element.empty() || |
- !observed_form_.new_password_element.empty(); |
-} |
- |
void PasswordFormManager::ProvisionallySave( |
const PasswordForm& credentials, |
OtherPossibleUsernamesAction action) { |