diff options
author | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 15:49:21 +0000 |
---|---|---|
committer | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 15:49:21 +0000 |
commit | 4b76c7799e2b103d8e6eb15fead86fe97a87553b (patch) | |
tree | 541b88eb4a52167c2a6b69ed03b2f6d81ee02bbf /components/autofill/renderer/form_autofill_util.cc | |
parent | 3c5ba1d96fd7a5684dec3485ca150d1f89920d13 (diff) | |
download | chromium_src-4b76c7799e2b103d8e6eb15fead86fe97a87553b.zip chromium_src-4b76c7799e2b103d8e6eb15fead86fe97a87553b.tar.gz chromium_src-4b76c7799e2b103d8e6eb15fead86fe97a87553b.tar.bz2 |
Autofill:Autocomplete: Enable autocheckout of input elements of type password. This will support fields like CVV which are created as password fields by some sites.
BUG=187267
Review URL: https://chromiumcodereview.appspot.com/12721004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/autofill/renderer/form_autofill_util.cc')
-rw-r--r-- | components/autofill/renderer/form_autofill_util.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/autofill/renderer/form_autofill_util.cc b/components/autofill/renderer/form_autofill_util.cc index 8b0e6fb..a0bbc43 100644 --- a/components/autofill/renderer/form_autofill_util.cc +++ b/components/autofill/renderer/form_autofill_util.cc @@ -590,13 +590,9 @@ namespace autofill { const size_t kMaxParseableFields = 100; -// In HTML5, all text fields except password are text input fields to -// autocomplete. +// All text fields, including password fields, should be extracted. bool IsTextInput(const WebInputElement* element) { - if (!element) - return false; - - return element->isTextField() && !element->isPasswordField(); + return element && element->isTextField(); } bool IsSelectElement(const WebFormControlElement& element) { |