Index: components/autofill/core/browser/autocomplete_history_manager.cc |
diff --git a/components/autofill/core/browser/autocomplete_history_manager.cc b/components/autofill/core/browser/autocomplete_history_manager.cc |
index 6562157e946e7a302901ff269092eb20f4635e34..7795063da3824cf296a2016b0d66359de0ee4e47 100644 |
--- a/components/autofill/core/browser/autocomplete_history_manager.cc |
+++ b/components/autofill/core/browser/autocomplete_history_manager.cc |
@@ -81,6 +81,7 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions( |
int query_id, |
const base::string16& name, |
const base::string16& prefix, |
+ const std::string form_control_type, |
const std::vector<base::string16>& autofill_values, |
const std::vector<base::string16>& autofill_labels, |
const std::vector<base::string16>& autofill_icons, |
@@ -92,7 +93,9 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions( |
autofill_labels_ = autofill_labels; |
autofill_icons_ = autofill_icons; |
autofill_unique_ids_ = autofill_unique_ids; |
- if (!manager_delegate_->IsAutocompleteEnabled()) { |
+ // Don't return autocomplete suggestions for textarea. |
Ilya Sherman
2014/03/19 23:47:42
nit: This comment is redundant with the code; plea
ziran.sun
2014/03/20 19:03:41
Done.
|
+ if (!manager_delegate_->IsAutocompleteEnabled() || |
+ form_control_type == "textarea") { |
SendSuggestions(NULL); |
return; |
} |