summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 17:34:39 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 17:34:39 +0000
commit0a0554502c87277323e1438a6ab5b50acb9aab46 (patch)
tree885e2fdc2c97b972b4683469e49e4a0cdc7a5c43 /webkit
parent308b6a1e93de0916f775c44818704717a00fcf70 (diff)
downloadchromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.zip
chromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.tar.gz
chromium_src-0a0554502c87277323e1438a6ab5b50acb9aab46.tar.bz2
AutoFill: Use unique IDs to identify the profile or credit card to fill.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3019001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webpasswordautocompletelistener_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/webpasswordautocompletelistener_impl.cc b/webkit/glue/webpasswordautocompletelistener_impl.cc
index a1ea755..5caeae1 100644
--- a/webkit/glue/webpasswordautocompletelistener_impl.cc
+++ b/webkit/glue/webpasswordautocompletelistener_impl.cc
@@ -59,13 +59,15 @@ void WebInputElementDelegate::RefreshAutofillPopup(
if (webview) {
std::vector<string16> names;
std::vector<string16> labels;
+ std::vector<int> unique_ids;
for (size_t i = 0; i < suggestions.size(); ++i) {
names.push_back(suggestions[i]);
labels.push_back(string16());
+ unique_ids.push_back(0);
}
- webview->applyAutoFillSuggestions(element_, names, labels, -1);
+ webview->applyAutoFillSuggestions(element_, names, labels, unique_ids, -1);
}
}