Index: components/autofill/content/browser/wallet/wallet_service_url.cc |
diff --git a/components/autofill/content/browser/wallet/wallet_service_url.cc b/components/autofill/content/browser/wallet/wallet_service_url.cc |
index e032ed3e29607ea1d1a0fa734a7b5835c593885e..68cbd8f4f1f9115614f044125d0b64ef107ff5db 100644 |
--- a/components/autofill/content/browser/wallet/wallet_service_url.cc |
+++ b/components/autofill/content/browser/wallet/wallet_service_url.cc |
@@ -206,9 +206,11 @@ bool IsSignInContinueUrl(const GURL& url, size_t* user_index) { |
bool IsSignInRelatedUrl(const GURL& url) { |
size_t unused; |
- return url.GetOrigin() == GetAddAccountUrl().GetOrigin() || |
- base::StartsWith(base::UTF8ToUTF16(url.GetOrigin().host()), |
- base::ASCIIToUTF16("accounts."), false) || |
+ // Origins are host names which are canonicalized, so case-sensitive is OK. |
+ GURL origin = url.GetOrigin(); |
+ return origin == GetAddAccountUrl().GetOrigin() || |
+ base::StartsWith(origin.host(), "accounts.", |
+ base::CompareCase::SENSITIVE) || |
IsSignInContinueUrl(url, &unused); |
} |