| Index: components/password_manager/core/browser/test_password_store.cc
|
| diff --git a/components/password_manager/core/browser/test_password_store.cc b/components/password_manager/core/browser/test_password_store.cc
|
| index 6f1e2840cd8eeded334e452e911a463d3c90e697..f65ed1cefafa0f77a1429266b928397e402c3629 100644
|
| --- a/components/password_manager/core/browser/test_password_store.cc
|
| +++ b/components/password_manager/core/browser/test_password_store.cc
|
| @@ -127,14 +127,22 @@ bool TestPasswordStore::RemoveStatisticsCreatedBetweenImpl(
|
| bool TestPasswordStore::FillAutofillableLogins(
|
| ScopedVector<autofill::PasswordForm>* forms) {
|
| for (const auto& forms_for_realm : stored_passwords_) {
|
| - for (const autofill::PasswordForm& form : forms_for_realm.second)
|
| - forms->push_back(new autofill::PasswordForm(form));
|
| + for (const autofill::PasswordForm& form : forms_for_realm.second) {
|
| + if (!form.blacklisted_by_user)
|
| + forms->push_back(new autofill::PasswordForm(form));
|
| + }
|
| }
|
| return true;
|
| }
|
|
|
| bool TestPasswordStore::FillBlacklistLogins(
|
| ScopedVector<autofill::PasswordForm>* forms) {
|
| + for (const auto& forms_for_realm : stored_passwords_) {
|
| + for (const autofill::PasswordForm& form : forms_for_realm.second) {
|
| + if (form.blacklisted_by_user)
|
| + forms->push_back(new autofill::PasswordForm(form));
|
| + }
|
| + }
|
| return true;
|
| }
|
|
|
|
|