Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1740)

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3071003: AutoFill: Display a right-aligned generic CC icon in the suggestions popup for (Closed)
Patch Set: Rebase. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.cc
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 72e55b674b4091e88ddf947bb6ccf48438e5bc9b..54cae398549286ec06642937cbbb9935e5fbc766 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1610,6 +1610,7 @@ void RenderViewHost::OnQueryFormFieldAutoFill(
AutoFillSuggestionsReturned(query_id,
std::vector<string16>(),
std::vector<string16>(),
+ std::vector<string16>(),
std::vector<int>());
}
@@ -1659,10 +1660,12 @@ void RenderViewHost::AutoFillSuggestionsReturned(
int query_id,
const std::vector<string16>& names,
const std::vector<string16>& labels,
+ const std::vector<string16>& icons,
const std::vector<int>& unique_ids) {
autofill_query_id_ = query_id;
autofill_values_.assign(names.begin(), names.end());
autofill_labels_.assign(labels.begin(), labels.end());
+ autofill_icons_.assign(icons.begin(), icons.end());
autofill_unique_ids_.assign(unique_ids.begin(), unique_ids.end());
}
@@ -1676,6 +1679,7 @@ void RenderViewHost::AutocompleteSuggestionsReturned(
// Autocomplete is canceling.
autofill_values_.clear();
autofill_labels_.clear();
+ autofill_icons_.clear();
autofill_unique_ids_.clear();
}
@@ -1695,6 +1699,7 @@ void RenderViewHost::AutocompleteSuggestionsReturned(
if (unique) {
autofill_values_.push_back(suggestions[i]);
autofill_labels_.push_back(string16());
+ autofill_icons_.push_back(string16());
autofill_unique_ids_.push_back(0); // 0 means no profile.
}
}
@@ -1703,6 +1708,7 @@ void RenderViewHost::AutocompleteSuggestionsReturned(
query_id,
autofill_values_,
autofill_labels_,
+ autofill_icons_,
autofill_unique_ids_));
}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698