summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill_helper.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:46:41 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:46:41 +0000
commita53e0683ad312c10f5772dadbfd5df33c45f03c1 (patch)
tree586a006733358bce4e4ac6843ea409ed5989dec3 /chrome/renderer/autofill_helper.cc
parentcd1128ccd0a07b501dacef72c4b645b782848f95 (diff)
downloadchromium_src-a53e0683ad312c10f5772dadbfd5df33c45f03c1.zip
chromium_src-a53e0683ad312c10f5772dadbfd5df33c45f03c1.tar.gz
chromium_src-a53e0683ad312c10f5772dadbfd5df33c45f03c1.tar.bz2
AutoFill: Display a right-aligned generic CC icon in the suggestions popup for
billing suggestions. BUG=50080 TEST=none Review URL: http://codereview.chromium.org/3071003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/autofill_helper.cc')
-rw-r--r--chrome/renderer/autofill_helper.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/autofill_helper.cc b/chrome/renderer/autofill_helper.cc
index 698a3b342d..1ed6b09 100644
--- a/chrome/renderer/autofill_helper.cc
+++ b/chrome/renderer/autofill_helper.cc
@@ -66,6 +66,7 @@ void AutoFillHelper::RemoveAutocompleteSuggestion(
void AutoFillHelper::SuggestionsReceived(int query_id,
const std::vector<string16>& values,
const std::vector<string16>& labels,
+ const std::vector<string16>& icons,
const std::vector<int>& unique_ids) {
WebKit::WebView* web_view = render_view_->webview();
if (!web_view || query_id != autofill_query_id_)
@@ -80,6 +81,7 @@ void AutoFillHelper::SuggestionsReceived(int query_id,
std::vector<string16> v(values);
std::vector<string16> l(labels);
+ std::vector<string16> i(icons);
std::vector<int> ids(unique_ids);
int separator_index = -1;
@@ -88,6 +90,7 @@ void AutoFillHelper::SuggestionsReceived(int query_id,
if (form_manager_.FormWithNodeIsAutoFilled(autofill_query_node_)) {
v.push_back(l10n_util::GetStringUTF16(IDS_AUTOFILL_CLEAR_FORM_MENU_ITEM));
l.push_back(string16());
+ i.push_back(string16());
ids.push_back(0);
suggestions_clear_index_ = v.size() - 1;
separator_index = values.size();
@@ -106,6 +109,7 @@ void AutoFillHelper::SuggestionsReceived(int query_id,
// Append the 'AutoFill Options...' menu item.
v.push_back(l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS));
l.push_back(string16());
+ i.push_back(string16());
ids.push_back(0);
suggestions_options_index_ = v.size() - 1;
separator_index = values.size();
@@ -114,7 +118,7 @@ void AutoFillHelper::SuggestionsReceived(int query_id,
// Send to WebKit for display.
if (!v.empty()) {
web_view->applyAutoFillSuggestions(
- autofill_query_node_, v, l, ids, separator_index);
+ autofill_query_node_, v, l, i, ids, separator_index);
}
}