Chromium Code Reviews| 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 0793bb5ff310c507941a7edd69bca4dfe57345b3..b266013e1507dd5a5d9980419fa9b1f4ce2b0605 100644 |
| --- a/components/autofill/core/browser/contact_info.cc |
| +++ b/components/autofill/core/browser/contact_info.cc |
| @@ -34,6 +34,16 @@ NameInfo& NameInfo::operator=(const NameInfo& info) { |
| return *this; |
| } |
| +bool NameInfo::operator==(const NameInfo& info) { |
| + return (StringToLowerASCII(first_) == StringToLowerASCII(info.first_) && |
| + StringToLowerASCII(middle_) == StringToLowerASCII(info.middle_) && |
| + StringToLowerASCII(last_) == StringToLowerASCII(info.last_)); |
|
Ilya Sherman
2014/06/12 22:35:11
operator== should be case-sensitive. If you want
Pritam Nikam
2014/06/13 14:03:33
Done.
|
| +} |
| + |
| +bool NameInfo::operator!=(const NameInfo& info) { |
| + return !(*this == info); |
| +} |
| + |
| void NameInfo::GetSupportedTypes(ServerFieldTypeSet* supported_types) const { |
| supported_types->insert(NAME_FIRST); |
| supported_types->insert(NAME_MIDDLE); |