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

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

Issue 2513033002: Refactor CredentialManagerImpl::RequireUserMediation method. (Closed)
Patch Set: ios Created 4 years, 1 month 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/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 4d4f823f472ee1ab2f5cb5f56dfadad179826376..f84d597ffb2064ffbcda7f62c15dec5c5a848c15 100644
--- a/components/password_manager/core/browser/test_password_store.cc
+++ b/components/password_manager/core/browser/test_password_store.cc
@@ -88,7 +88,8 @@ TestPasswordStore::FillMatchingLogins(const FormDigest& form) {
for (const auto& elements : stored_passwords_) {
if (elements.first == form.signon_realm ||
(form.scheme == autofill::PasswordForm::SCHEME_HTML &&
- password_manager::IsFederatedMatch(elements.first, form.origin))) {
+ password_manager::IsFederatedMatch(elements.first, form.origin)) ||
+ IsPublicSuffixDomainMatch(elements.first, form.signon_realm)) {
for (const auto& stored_form : elements.second)
matched_forms.push_back(
base::MakeUnique<autofill::PasswordForm>(stored_form));

Powered by Google App Engine
This is Rietveld 408576698