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

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: 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..dce870ac27b4944643f06deb7d9308bfebcefd53 100644
--- a/components/autofill/core/browser/contact_info.cc
+++ b/components/autofill/core/browser/contact_info.cc
@@ -39,9 +39,8 @@ NameInfo& NameInfo::operator=(const NameInfo& info) {
bool NameInfo::ParsedNamesAreEqual(const NameInfo& info) const {
Mathieu 2016/04/29 12:23:03 update comment in .h
sebsg 2016/04/29 15:04:49 Done.
l10n::CaseInsensitiveCompare compare;
Mathieu 2016/04/29 12:23:03 no need for compare
sebsg 2016/04/29 15:04:49 Done.
- 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 {

Powered by Google App Engine
This is Rietveld 408576698