diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 22:28:17 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 22:28:17 +0000 |
commit | 4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd (patch) | |
tree | e384f04d2a7bc8403cf19929d84447782d6c7871 /chrome/browser/webdata/web_database.h | |
parent | e08a579d8d6701fa48eac6945248855bbb5a70a6 (diff) | |
download | chromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.zip chromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.tar.gz chromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.tar.bz2 |
Pressing the Del key while a item is selected in the autocomplete popup deletes that suggestion from the DB.
BUG=6176
TEST=Bring up the autofill popup in a form. Select an item and press the Del key. The item should be removed from the popup and should not show on subsequent autofill popups.
Review URL: http://codereview.chromium.org/42258
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_database.h')
-rw-r--r-- | chrome/browser/webdata/web_database.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/webdata/web_database.h b/chrome/browser/webdata/web_database.h index 95d4906..3584701 100644 --- a/chrome/browser/webdata/web_database.h +++ b/chrome/browser/webdata/web_database.h @@ -178,7 +178,10 @@ class WebDatabase { bool InsertPairIDAndDate(int64 pair_id, const base::Time date_created); // Removes row from the autofill tables given |pair_id|. - bool RemoveFormElement(int64 pair_id); + bool RemoveFormElementForID(int64 pair_id); + + // Removes row from the autofill tables for the given |name| |value| pair. + bool RemoveFormElement(const std::wstring& name, const std::wstring& value); ////////////////////////////////////////////////////////////////////////////// // |