Index: components/autofill/content/renderer/form_autofill_util.cc |
diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc |
index b2259ed4f86cb523451238e636bb5ccbdcfc0428..b6c54ac0f50ecc8e280d6c45d4e61f7671e4008c 100644 |
--- a/components/autofill/content/renderer/form_autofill_util.cc |
+++ b/components/autofill/content/renderer/form_autofill_util.cc |
@@ -1312,7 +1312,8 @@ bool UnownedFormElementsAndFieldSetsToFormData( |
std::string lang; |
if (!html_element.isNull()) |
lang = html_element.getAttribute("lang").utf8(); |
- if ((lang.empty() || base::StartsWithASCII(lang, "en", false)) && |
+ if ((lang.empty() || |
+ base::StartsWith(lang, "en", base::CompareCase::INSENSITIVE_ASCII)) && |
!MatchesPattern(document.title(), |
base::UTF8ToUTF16("payment|checkout|address|delivery|shipping"))) { |
return false; |