summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/web_database.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 21:03:29 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 21:03:29 +0000
commitfaa43b74c1f27b8f81c0e5d672ae9b62088ce29a (patch)
tree4e855dbdf9571ff94a221e1e1d4c247570ad34e3 /chrome/browser/webdata/web_database.h
parent277d5942c22b06bbcc6288a8d60721d5841be014 (diff)
downloadchromium_src-faa43b74c1f27b8f81c0e5d672ae9b62088ce29a.zip
chromium_src-faa43b74c1f27b8f81c0e5d672ae9b62088ce29a.tar.gz
chromium_src-faa43b74c1f27b8f81c0e5d672ae9b62088ce29a.tar.bz2
Autocomplete entries submitted are limited in number.
Limits the number of Autocomplete entries added to the WebDB, per form submission, to a maximum of 256. If elements occur that have duplicate names, only the first occurrence is added. BUG=51727 TEST=WebDatabaseTest.Autofill_AddFormFieldValues Review URL: http://codereview.chromium.org/3143005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_database.h')
-rw-r--r--chrome/browser/webdata/web_database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/webdata/web_database.h b/chrome/browser/webdata/web_database.h
index 116816e..ca24cf9 100644
--- a/chrome/browser/webdata/web_database.h
+++ b/chrome/browser/webdata/web_database.h
@@ -284,6 +284,7 @@ class WebDatabase {
FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest,
Autofill_GetAllAutofillEntries_TwoSame);
FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_UpdateDontReplace);
+ FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddFormFieldValues);
// Methods for adding autofill entries at a specified time. For
// testing only.
bool AddFormFieldValuesTime(