| Index: components/password_manager/core/browser/password_manager.cc
|
| diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc
|
| index 28085c074415b104a4c83bb7840e8e3a69a6e64a..3783547769da317a37944c33b5d95df0ecad4256 100644
|
| --- a/components/password_manager/core/browser/password_manager.cc
|
| +++ b/components/password_manager/core/browser/password_manager.cc
|
| @@ -635,19 +635,15 @@ void PasswordManager::OnPasswordFormsRendered(
|
| provisional_save_manager_->pending_credentials().action,
|
| all_visible_forms_[i].action)) {
|
| provisional_save_manager_->LogSubmitFailed();
|
| - // Generated passwords should always be saved, but we do want to
|
| - // record that the submission normally would have failed for UMA.
|
| - if (!provisional_save_manager_->has_generated_password()) {
|
| - if (logger) {
|
| - logger->LogPasswordForm(Logger::STRING_PASSWORD_FORM_REAPPEARED,
|
| - all_visible_forms_[i]);
|
| - logger->LogMessage(Logger::STRING_DECISION_DROP);
|
| - }
|
| - provisional_save_manager_.reset();
|
| - // Clear all_visible_forms_ once we found the match.
|
| - all_visible_forms_.clear();
|
| - return;
|
| + if (logger) {
|
| + logger->LogPasswordForm(Logger::STRING_PASSWORD_FORM_REAPPEARED,
|
| + all_visible_forms_[i]);
|
| + logger->LogMessage(Logger::STRING_DECISION_DROP);
|
| }
|
| + provisional_save_manager_.reset();
|
| + // Clear all_visible_forms_ once we found the match.
|
| + all_visible_forms_.clear();
|
| + return;
|
| }
|
| }
|
| } else {
|
|
|