Chromium Code Reviews| Index: components/autofill/core/browser/webdata/autofill_entry.cc |
| diff --git a/components/autofill/core/browser/webdata/autofill_entry.cc b/components/autofill/core/browser/webdata/autofill_entry.cc |
| index 83fd639bbbd7cec47e2e1662f67a61b435dff7b0..58494a7c93e654bfb9e0775ec1e507cf04aa5e81 100644 |
| --- a/components/autofill/core/browser/webdata/autofill_entry.cc |
| +++ b/components/autofill/core/browser/webdata/autofill_entry.cc |
| @@ -38,6 +38,8 @@ bool AutofillKey::operator<(const AutofillKey& key) const { |
| return std::tie(name_, value_) < std::tie(key.name(), key.value()); |
| } |
| +AutofillEntry::AutofillEntry() {} |
| + |
| AutofillEntry::AutofillEntry(const AutofillKey& key, |
| const base::Time& date_created, |
| const base::Time& date_last_used) |
| @@ -53,6 +55,10 @@ bool AutofillEntry::operator==(const AutofillEntry& entry) const { |
| date_last_used() == entry.date_last_used(); |
| } |
| +bool AutofillEntry::operator!=(const AutofillEntry& entry) const { |
|
maxbogue
2017/01/12 00:15:17
How does this not come with operator==...? Oh C++.
skym
2017/01/12 17:44:00
Acknowledged.
|
| + return !(*this == entry); |
| +} |
| + |
| bool AutofillEntry::operator<(const AutofillEntry& entry) const { |
| return key_ < entry.key(); |
| } |