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

Unified Diff: components/password_manager/core/browser/test_password_store.cc

Issue 1838183002: [Password Manager] Prefetch blacklisted Android credentials in AffiliatedMatchHelper's initializatio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android_credentials_blacklisted
Patch Set: Created 4 years, 9 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
« no previous file with comments | « components/password_manager/core/browser/affiliated_match_helper_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « components/password_manager/core/browser/affiliated_match_helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698