Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/system/version_loader.cc ('k') | components/autofill/core/browser/autofill_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chromeos/system/version_loader.cc ('k') | components/autofill/core/browser/autofill_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698