summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 07:23:41 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 07:23:41 +0000
commita81f2cde78725b3458013fef29cde6fbe413d89c (patch)
tree961a536c43a2d11fc7407bc7a02a6dd8d1fe8c47 /chrome/browser/autofill
parented0e334ab55d847c3a53ef6def07fa8ddfd34b34 (diff)
downloadchromium_src-a81f2cde78725b3458013fef29cde6fbe413d89c.zip
chromium_src-a81f2cde78725b3458013fef29cde6fbe413d89c.tar.gz
chromium_src-a81f2cde78725b3458013fef29cde6fbe413d89c.tar.bz2
AutoFill form filling on myspace.com
Field matching for "fullname" field on http://signups.myspace.com/index.cfm?fuseaction=signup. Extends the full name matching to succeed when text field matches "fullname" string. BUG=37990 TEST=Manual steps as described in bug using http://signups.myspace.com/index.cfm?fuseaction=signup as test form. Review URL: http://codereview.chromium.org/904003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r--chrome/browser/autofill/name_field.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/autofill/name_field.cc b/chrome/browser/autofill/name_field.cc
index d1e6fb3..b6babe5 100644
--- a/chrome/browser/autofill/name_field.cc
+++ b/chrome/browser/autofill/name_field.cc
@@ -27,8 +27,9 @@ FullNameField* FullNameField::Parse(
// Searching for any label containing the word "name" is too general;
// for example, Travelocity_Edit travel profile.html contains a field
// "Travel Profile Name".
- if (ParseText(iter, ASCIIToUTF16("^name|full name|your name|customer name"),
- &field))
+ const string16 name_match =
+ ASCIIToUTF16("^name|full name|fullname|your name|customer name");
+ if (ParseText(iter, name_match, &field))
return new FullNameField(field);
return NULL;