Index: components/password_manager/core/browser/login_database.cc |
diff --git a/components/password_manager/core/browser/login_database.cc b/components/password_manager/core/browser/login_database.cc |
index a3f1c9b27b9e10899003ec506abc5cafb412d321..b0e116ce53c4418380b7b0e10e1aa616bccae9a7 100644 |
--- a/components/password_manager/core/browser/login_database.cc |
+++ b/components/password_manager/core/browser/login_database.cc |
@@ -659,9 +659,10 @@ bool LoginDatabase::GetLogins(const PasswordForm& form, |
std::string registered_domain = GetRegistryControlledDomain(signon_realm); |
PSLDomainMatchMetric psl_domain_match_metric = PSL_DOMAIN_MATCH_NONE; |
const bool should_PSL_matching_apply = |
+ form.scheme == PasswordForm::SCHEME_HTML && |
ShouldPSLDomainMatchingApply(registered_domain); |
// PSL matching only applies to HTML forms. |
- if (form.scheme == PasswordForm::SCHEME_HTML && should_PSL_matching_apply) { |
+ if (should_PSL_matching_apply) { |
// We are extending the original SQL query with one that includes more |
// possible matches based on public suffix domain matching. Using a regexp |
// here is just an optimization to not have to parse all the stored entries |