summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/autofill_change.h
diff options
context:
space:
mode:
authorskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 22:45:27 +0000
committerskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 22:45:27 +0000
commite52bc1e0d760a3a4829ab1cf8adfcb5a634c3914 (patch)
tree2fd140974cb82a17b08ed2682796effaf9ceb0aa /chrome/browser/webdata/autofill_change.h
parente18f89a80abfa1ca7b4736002a797e407b3fef9b (diff)
downloadchromium_src-e52bc1e0d760a3a4829ab1cf8adfcb5a634c3914.zip
chromium_src-e52bc1e0d760a3a4829ab1cf8adfcb5a634c3914.tar.gz
chromium_src-e52bc1e0d760a3a4829ab1cf8adfcb5a634c3914.tar.bz2
Return a list of changed from WebDatabase::RemoveFormElementsAddedBetween()
This changes add a list of AutofillChange out parameter to the RemoveFormElementsAddedBetween() method in order to communicate exactly what happened to the caller. This method may only update some autofill entries (by removing use timestamps that fall in the specified time range) or completely remove the autofill entry (if all the use timestamps fall between the specified time range). For sync, we need to know the difference. This change also required some new testing method on WebDatabase to make it possible to add new autofill entries with specific timestamps. This is needed to create a reliable test that requires entries to be added at different times. If there is a better way to do this, please let me know. The next change will add the notifications to the WebDataService. BUG=30169 Review URL: http://codereview.chromium.org/506047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/autofill_change.h')
-rw-r--r--chrome/browser/webdata/autofill_change.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/webdata/autofill_change.h b/chrome/browser/webdata/autofill_change.h
index 2eb8d50..ea16846 100644
--- a/chrome/browser/webdata/autofill_change.h
+++ b/chrome/browser/webdata/autofill_change.h
@@ -23,9 +23,7 @@ class AutofillChange {
Type type() const { return type_; }
const AutofillKey& key() const { return key_; }
- bool operator==(const AutofillChange& change) const {
- return type_ == change.type() && key_ == change.key();
- }
+ bool operator==(const AutofillChange& change) const;
private:
Type type_;