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

Unified Diff: components/autofill/core/browser/contact_info.cc

Issue 1931123002: [Autofill] Make PersonalDataManager::OverwriteWith case sensitive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
Index: components/autofill/core/browser/contact_info.cc
diff --git a/components/autofill/core/browser/contact_info.cc b/components/autofill/core/browser/contact_info.cc
index 8db9fc5938208e8f6051049795ebfc1f51adb459..1cb1b784f0b3b1cf5af0a99a772814fa04fdb6af 100644
--- a/components/autofill/core/browser/contact_info.cc
+++ b/components/autofill/core/browser/contact_info.cc
@@ -38,10 +38,8 @@ NameInfo& NameInfo::operator=(const NameInfo& info) {
}
bool NameInfo::ParsedNamesAreEqual(const NameInfo& info) const {
- l10n::CaseInsensitiveCompare compare;
- return compare.StringsEqual(given_, info.given_) &&
- compare.StringsEqual(middle_, info.middle_) &&
- compare.StringsEqual(family_, info.family_);
+ return given_ == info.given_ && middle_ == info.middle_ &&
+ family_ == info.family_;
}
void NameInfo::GetSupportedTypes(ServerFieldTypeSet* supported_types) const {
« no previous file with comments | « components/autofill/core/browser/contact_info.h ('k') | components/autofill/core/browser/contact_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698