| Index: chrome/renderer/autofill/form_autofill_util.cc
|
| diff --git a/chrome/renderer/autofill/form_autofill_util.cc b/chrome/renderer/autofill/form_autofill_util.cc
|
| index 9b5cd05aac90560a9732959c0777e0d44bbf2e44..c04954160f8158845c0ee5992fff897e5dd7d9b8 100644
|
| --- a/chrome/renderer/autofill/form_autofill_util.cc
|
| +++ b/chrome/renderer/autofill/form_autofill_util.cc
|
| @@ -574,21 +574,14 @@ bool IsSelectElement(const WebFormControlElement& element) {
|
| }
|
|
|
| bool IsCheckableElement(const WebInputElement* element) {
|
| - // Is static for improving performance.
|
| - CR_DEFINE_STATIC_LOCAL(WebString, kRadio, ("radio"));
|
| - CR_DEFINE_STATIC_LOCAL(WebString, kCheckbox, ("checkbox"));
|
| -
|
| if (!element)
|
| return false;
|
|
|
| - WebString formControlType = element->formControlType();
|
| - return formControlType == kCheckbox || formControlType == kRadio;
|
| + return element->isCheckbox() || element->isRadioButton();
|
| }
|
|
|
| bool IsAutofillableInputElement(const WebInputElement* element) {
|
| - // TODO(ramankk): Uncomment IsCheckableElement part once we have solution
|
| - // for the observed performance regression.
|
| - return IsTextInput(element); // || IsCheckableElement(element);
|
| + return IsTextInput(element) || IsCheckableElement(element);
|
| }
|
|
|
| const string16 GetFormIdentifier(const WebFormElement& form) {
|
|
|