diff options
author | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 22:45:27 +0000 |
---|---|---|
committer | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 22:45:27 +0000 |
commit | e52bc1e0d760a3a4829ab1cf8adfcb5a634c3914 (patch) | |
tree | 2fd140974cb82a17b08ed2682796effaf9ceb0aa /chrome/browser/webdata/autofill_entry.h | |
parent | e18f89a80abfa1ca7b4736002a797e407b3fef9b (diff) | |
download | chromium_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_entry.h')
-rw-r--r-- | chrome/browser/webdata/autofill_entry.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/webdata/autofill_entry.h b/chrome/browser/webdata/autofill_entry.h index 9aadc3a..664cbaeb 100644 --- a/chrome/browser/webdata/autofill_entry.h +++ b/chrome/browser/webdata/autofill_entry.h @@ -20,9 +20,7 @@ class AutofillKey { const string16& name() const { return name_; } const string16& value() const { return value_; } - bool operator==(const AutofillKey& key) const { - return name_ == key.name() && value_ == key.value(); - } + bool operator==(const AutofillKey& key) const; private: string16 name_; |