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

Unified Diff: components/autofill/core/browser/webdata/autofill_entry.cc

Issue 2624883002: [Sync] ApplySyncChanges autofill implementation. (Closed)
Patch Set: More updates for Max's comments. Created 3 years, 11 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/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 {
+ return !(*this == entry);
+}
+
bool AutofillEntry::operator<(const AutofillEntry& entry) const {
return key_ < entry.key();
}

Powered by Google App Engine
This is Rietveld 408576698