Index: components/password_manager/core/browser/psl_matching_helper.cc |
diff --git a/components/password_manager/core/browser/psl_matching_helper.cc b/components/password_manager/core/browser/psl_matching_helper.cc |
index b2fcdbae01e8ddae60e7a63fdad3dffe179299b2..cce13b43addfa82faf2738ac5d2cc90de11588ee 100644 |
--- a/components/password_manager/core/browser/psl_matching_helper.cc |
+++ b/components/password_manager/core/browser/psl_matching_helper.cc |
@@ -29,6 +29,9 @@ bool IsPublicSuffixDomainMatch(const std::string& url1, |
if (!gurl1.is_valid() || !gurl2.is_valid()) |
return false; |
+ if (gurl1 == gurl2) |
+ return true; |
+ |
std::string domain1(GetRegistryControlledDomain(gurl1)); |
std::string domain2(GetRegistryControlledDomain(gurl2)); |