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..1234036c6dae25cae8ef06031419461fc5a14ea4 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 (first_ == info.first_ && middle_ == info.middle_ && |
| + last_ == info.last_); |
| +} |
| + |
| +bool NameInfo::operator!=(const NameInfo& info) { |
| + return !(first_ == info.first_ && middle_ == info.middle_ && |
| + last_ == info.last_); |
|
Ilya Sherman
2014/05/29 07:38:03
nit: "return !(*this == info);"
Pritam Nikam
2014/05/30 11:12:40
Done.
|
| +} |
| + |
| void NameInfo::GetSupportedTypes(ServerFieldTypeSet* supported_types) const { |
| supported_types->insert(NAME_FIRST); |
| supported_types->insert(NAME_MIDDLE); |