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

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

Issue 279001: Move autofill related WebView{Delegate} methods into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
Index: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 29209)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -1541,22 +1541,22 @@
}
}
-void RenderViewHost::OnQueryFormFieldAutofill(int request_id,
- const std::wstring& field_name,
- const std::wstring& user_text) {
+void RenderViewHost::OnQueryFormFieldAutofill(int query_id,
+ const string16& field_name,
+ const string16& user_text) {
RenderViewHostDelegate::Autofill* autofill_delegate =
delegate_->GetAutofillDelegate();
bool ok = false;
if (autofill_delegate) {
ok = autofill_delegate->GetAutofillSuggestions(
- request_id, field_name, user_text);
+ query_id, field_name, user_text);
}
if (!ok)
- AutofillSuggestionsReturned(request_id, std::vector<std::wstring>(), 0);
+ AutofillSuggestionsReturned(query_id, std::vector<string16>(), -1);
}
-void RenderViewHost::OnRemoveAutofillEntry(const std::wstring& field_name,
- const std::wstring& value) {
+void RenderViewHost::OnRemoveAutofillEntry(const string16& field_name,
+ const string16& value) {
RenderViewHostDelegate::Autofill* autofill_delegate =
delegate_->GetAutofillDelegate();
if (autofill_delegate)
@@ -1564,10 +1564,10 @@
}
void RenderViewHost::AutofillSuggestionsReturned(
- int request_id, const std::vector<std::wstring>& suggestions,
+ int query_id, const std::vector<string16>& suggestions,
int default_suggestion_index) {
Send(new ViewMsg_QueryFormFieldAutofill_ACK(
- routing_id(), request_id, suggestions, -1));
+ routing_id(), query_id, suggestions, -1));
// Default index -1 means no default suggestion.
}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698