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

Unified Diff: chrome/renderer/autofill_helper.cc

Issue 6301005: Fix autocomplete for Gmail subject lines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No logging Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/autofill_helper.cc
diff --git a/chrome/renderer/autofill_helper.cc b/chrome/renderer/autofill_helper.cc
index a4295777271a3fc3a25aedd5185d26e2ef2de278..bf0d2c33d3fc2c91c89227f6b1b137f24f13b2d3 100644
--- a/chrome/renderer/autofill_helper.cc
+++ b/chrome/renderer/autofill_helper.cc
@@ -327,8 +327,13 @@ void AutoFillHelper::QueryAutoFillSuggestions(
webkit_glue::FormData form;
webkit_glue::FormField field;
- if (!FindFormAndFieldForNode(node, &form, &field))
- return;
+ if (!FindFormAndFieldForNode(node, &form, &field)) {
+ // If we didn't find the cached form, at least let autocomplete have a shot
+ // at providing suggestions.
+ FormManager::WebFormControlElementToFormField(
+ node.toConst<WebFormControlElement>(), FormManager::EXTRACT_VALUE,
+ &field);
+ }
Send(new ViewHostMsg_QueryFormFieldAutoFill(
routing_id(), autofill_query_id_, form, field));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698