Chromium Code Reviews| Index: components/autofill/content/renderer/autofill_agent.cc |
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
| index bfd57318c9f13d512fb7bd52fe1c9eeebd51e093..3f7eef80de5de307605904c331a4e8b4579334d2 100644 |
| --- a/components/autofill/content/renderer/autofill_agent.cc |
| +++ b/components/autofill/content/renderer/autofill_agent.cc |
| @@ -81,7 +81,7 @@ void GetDataListSuggestions(const WebInputElement& element, |
| if (!ignore_current_value) { |
| prefix = element.editingValue(); |
| if (element.isMultiple() && |
| - element.formControlType() == WebString::fromUTF8("email")) { |
| + element.isEmailField()) { |
|
Ilya Sherman
2014/07/09 23:17:51
nit: No need for this line to wrap anymore.
pals
2014/07/10 06:25:12
Done.
|
| std::vector<base::string16> parts; |
| base::SplitStringDontTrim(prefix, ',', &parts); |
| if (parts.size() > 0) { |
| @@ -415,7 +415,7 @@ void AutofillAgent::AcceptDataListSuggestion( |
| // If this element takes multiple values then replace the last part with |
| // the suggestion. |
| if (input_element->isMultiple() && |
| - input_element->formControlType() == WebString::fromUTF8("email")) { |
| + input_element->isEmailField()) { |
|
Ilya Sherman
2014/07/09 23:17:51
nit: No need for this line to wrap anymore.
pals
2014/07/10 06:25:12
Done.
|
| std::vector<base::string16> parts; |
| base::SplitStringDontTrim(input_element->editingValue(), ',', &parts); |