summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:00:17 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:00:17 +0000
commit2ad69c89162c0bb2cb9560d1d70ddbd928a37dc3 (patch)
treeca2d4dca5b51086d8d10083c223cdbb7432c1362 /chrome/renderer/render_view.cc
parent436e86cec0586bc8ac632ebd86eed0519d47535c (diff)
downloadchromium_src-2ad69c89162c0bb2cb9560d1d70ddbd928a37dc3.zip
chromium_src-2ad69c89162c0bb2cb9560d1d70ddbd928a37dc3.tar.gz
chromium_src-2ad69c89162c0bb2cb9560d1d70ddbd928a37dc3.tar.bz2
AutoFill: Fix a bug that caused AutoFill to not fill the field the user is
typing in. This change also conveniently removes filling the default profile, since this feature has been removed from AutoFill. BUG=46219 TEST=FormManagerTest.FillFormNonEmptyField Review URL: http://codereview.chromium.org/2766005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rwxr-xr-xchrome/renderer/render_view.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index c9e89c52..74dd7ac 100755
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -682,7 +682,6 @@ void RenderView::OnMessageReceived(const IPC::Message& message) {
OnDisassociateFromPopupCount)
IPC_MESSAGE_HANDLER(ViewMsg_AutoFillSuggestionsReturned,
OnAutoFillSuggestionsReturned)
- IPC_MESSAGE_HANDLER(ViewMsg_AutoFillForms, OnAutoFillForms)
IPC_MESSAGE_HANDLER(ViewMsg_AutocompleteSuggestionsReturned,
OnAutocompleteSuggestionsReturned)
IPC_MESSAGE_HANDLER(ViewMsg_AutoFillFormDataFilled,
@@ -1515,12 +1514,6 @@ void RenderView::OnAutoFillSuggestionsReturned(
webview()->applyAutoFillSuggestions(
autofill_query_node_, values, labels, default_suggestion_index);
}
- autofill_query_node_.reset();
-}
-
-void RenderView::OnAutoFillForms(
- const std::vector<webkit_glue::FormData>& forms) {
- form_manager_.FillForms(forms);
}
void RenderView::OnAutocompleteSuggestionsReturned(
@@ -1531,7 +1524,6 @@ void RenderView::OnAutocompleteSuggestionsReturned(
webview()->applyAutocompleteSuggestions(
autofill_query_node_, suggestions, default_suggestion_index);
}
- autofill_query_node_.reset();
}
void RenderView::OnAutoFillFormDataFilled(int query_id,
@@ -1542,7 +1534,7 @@ void RenderView::OnAutoFillFormDataFilled(int query_id,
DCHECK_NE(AUTOFILL_NONE, autofill_action_);
if (autofill_action_ == AUTOFILL_FILL)
- form_manager_.FillForm(form);
+ form_manager_.FillForm(form, autofill_query_node_);
else if (autofill_action_ == AUTOFILL_PREVIEW)
form_manager_.PreviewForm(form);