diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 22:18:37 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 22:18:37 +0000 |
commit | d7240bfe793d42544e2256eb45367f01c7f2423e (patch) | |
tree | f47b56d7f255a5adc643faab9491a027920ccb35 /chrome/browser/autofill/form_field.cc | |
parent | f2ece936f1ec85e684fe0a0712256106272190d1 (diff) | |
download | chromium_src-d7240bfe793d42544e2256eb45367f01c7f2423e.zip chromium_src-d7240bfe793d42544e2256eb45367f01c7f2423e.tar.gz chromium_src-d7240bfe793d42544e2256eb45367f01c7f2423e.tar.bz2 |
Implement AddressField, a FormField that matches a set of address fields in a form.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/492022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/form_field.cc')
-rw-r--r-- | chrome/browser/autofill/form_field.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/autofill/form_field.cc b/chrome/browser/autofill/form_field.cc index da74448..1ab2c88 100644 --- a/chrome/browser/autofill/form_field.cc +++ b/chrome/browser/autofill/form_field.cc @@ -4,6 +4,7 @@ #include "chrome/browser/autofill/form_field.h" +#include "chrome/browser/autofill/address_field.h" #include "chrome/browser/autofill/autofill_field.h" #include "chrome/browser/autofill/phone_field.h" #include "third_party/WebKit/WebKit/chromium/public/WebRegularExpression.h" @@ -68,12 +69,13 @@ FormField* FormField::ParseFormField( field = PhoneField::Parse(iter, is_ecml); if (field != NULL) return field; + field = AddressField::Parse(iter, is_ecml); + if (field != NULL) + return field; // TODO(jhawkins): - // - AddressField // - CreditCardField // - NameField - // - PhoneField return NULL; } |