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..1005cc22c47ef0e2dbbe798136e13371fe5de25d 100644 |
--- a/components/password_manager/core/browser/login_database.cc |
+++ b/components/password_manager/core/browser/login_database.cc |
@@ -659,6 +659,7 @@ 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) { |
Garrett Casto
2014/12/05 19:12:38
Scheme check here is no longer necessary.
vabr (Chromium)
2014/12/05 22:22:51
Done.
|