summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 17:07:18 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 17:07:18 +0000
commit7e089f27c3060049313d8ce9465e26e2ec3b59a0 (patch)
tree7e689daf8ca63bcf7ce39a53c202297c1770fa7f /chrome/renderer
parent0d02d1915f300ba19818da52184c7a6b4f3e1548 (diff)
downloadchromium_src-7e089f27c3060049313d8ce9465e26e2ec3b59a0.zip
chromium_src-7e089f27c3060049313d8ce9465e26e2ec3b59a0.tar.gz
chromium_src-7e089f27c3060049313d8ce9465e26e2ec3b59a0.tar.bz2
Fix autofill popups not closing when there are no suggestions. We have to call through on an empty suggestion array so that the popup is told to close.
BUG=http://crbug.com/25559 TEST=as in bug Review URL: http://codereview.chromium.org/353009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index a2fea6f..8698211 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -1235,7 +1235,7 @@ void RenderView::OnQueryFormFieldAutofillAck(
int query_id,
const std::vector<string16>& suggestions,
int default_suggestion_index) {
- if (webview() && query_id == autofill_query_id_ && !suggestions.empty()) {
+ if (webview() && query_id == autofill_query_id_) {
webview()->applyAutofillSuggestions(
autofill_query_node_, suggestions, default_suggestion_index);
}