Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 7014011: Change heuristic regex and order to match grabber-continental. (Closed)

Created:
9 years, 7 months ago by honten.org
Modified:
9 years, 6 months ago
Reviewers:
Ilya Sherman, dhollowa
CC:
chromium-reviews, GeorgeY, Ilya Sherman
Visibility:
Public.

Description

Change heuristic regex and order to match grabber-continental. To support grabber-continental form, change the following part. 1, Delete "department" from company regex. 2, Insert email and phone check in address field loop. 3, Add |select_one_is_one| in FormField::Pattern and change |ParseText| to pass Pattern from string16. 4, Add |RewindTo()| function to rewind to specific cursor position. BUG=76299 TEST=1, put grabber-continental.html in heuristic/input. 2, Run browser_tests --gtest_filter=*.DataDrivenHeuristics and see heuristic/output.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Use bit pattern version. #

Total comments: 5

Patch Set 3 : Move IsTextInput() check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -71 lines) Patch
M chrome/browser/autofill/address_field.cc View 1 2 9 chunks +33 lines, -15 lines 0 comments Download
M chrome/browser/autofill/credit_card_field.cc View 1 2 7 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/autofill/email_field.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autofill/form_field.h View 1 2 3 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/autofill/form_field.cc View 1 2 5 chunks +45 lines, -29 lines 0 comments Download
M chrome/browser/autofill/name_field.cc View 1 5 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/autofill/phone_field.cc View 1 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
honten.org
Please review. http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/form_field.h File chrome/browser/autofill/form_field.h (right): http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/form_field.h#newcode86 chrome/browser/autofill/form_field.h:86: Pattern(const string16& pattern) I know we need ...
9 years, 7 months ago (2011-05-12 05:36:33 UTC) #1
honten.org
Please review. On 2011/05/12 05:36:33, honten wrote: > Please review. > > http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/form_field.h > File ...
9 years, 7 months ago (2011-05-12 22:39:31 UTC) #2
Ilya Sherman
If you prefer, I can make the suggested changes to AutofillScanner in a separate CL. ...
9 years, 7 months ago (2011-05-13 00:54:53 UTC) #3
honten.org
> If you prefer, I can make the suggested changes to AutofillScanner in a separate ...
9 years, 7 months ago (2011-05-13 01:39:48 UTC) #4
takano.naoki_gmail.com
Ilya or David, Could you give me your comment or thought? On Thu, May 12, ...
9 years, 7 months ago (2011-05-13 20:22:34 UTC) #5
dhollowa
Looking... The look-ahead with the scanner reset seems like it could be simpler. But I'm ...
9 years, 7 months ago (2011-05-14 01:23:26 UTC) #6
takano.naoki_gmail.com
Thanks, David. How about parameter things for ParseText()? On Fri, May 13, 2011 at 6:23 ...
9 years, 7 months ago (2011-05-14 01:59:56 UTC) #7
dhollowa
http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/form_field.h File chrome/browser/autofill/form_field.h (right): http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/form_field.h#newcode86 chrome/browser/autofill/form_field.h:86: Pattern(const string16& pattern) I think this may be a ...
9 years, 7 months ago (2011-05-14 02:15:50 UTC) #8
takano.naoki_gmail.com
That makes sense;-) Ok, I'll do that. On Fri, May 13, 2011 at 7:15 PM, ...
9 years, 7 months ago (2011-05-14 02:21:38 UTC) #9
honten.org
Please review again.
9 years, 7 months ago (2011-05-14 06:35:23 UTC) #10
Ilya Sherman
http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc File chrome/browser/autofill/address_field.cc (right): http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc#newcode97 chrome/browser/autofill/address_field.cc:97: break; David and I discussed this a bit offline ...
9 years, 7 months ago (2011-05-14 06:59:12 UTC) #11
Ilya Sherman
http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc File chrome/browser/autofill/address_field.cc (right): http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc#newcode97 chrome/browser/autofill/address_field.cc:97: break; On 2011/05/14 06:59:12, Ilya Sherman wrote: > David ...
9 years, 7 months ago (2011-05-14 07:01:32 UTC) #12
honten.org
http://codereview.chromium.org/7014011/diff/8001/chrome/browser/autofill/form_field.cc File chrome/browser/autofill/form_field.cc (right): http://codereview.chromium.org/7014011/diff/8001/chrome/browser/autofill/form_field.cc#newcode275 chrome/browser/autofill/form_field.cc:275: field->form_control_type == ASCIIToUTF16("text")) Yeah, you are right. I completely ...
9 years, 7 months ago (2011-05-14 07:30:05 UTC) #13
honten.org
http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc File chrome/browser/autofill/address_field.cc (right): http://codereview.chromium.org/7014011/diff/1/chrome/browser/autofill/address_field.cc#newcode97 chrome/browser/autofill/address_field.cc:97: break; I see, it might be better idea. But, ...
9 years, 7 months ago (2011-05-14 07:41:20 UTC) #14
dhollowa
This patch is getting too broad. Let's split it into separate patches for the different ...
9 years, 7 months ago (2011-05-16 14:53:31 UTC) #15
takano.naoki_gmail.com
David, Thank you for your comment. On Mon, May 16, 2011 at 7:53 AM, <dhollowa@chromium.org> ...
9 years, 7 months ago (2011-05-16 16:52:39 UTC) #16
dhollowa
On 2011/05/16 16:52:39, takano.naoki_gmail.com wrote: > David, > > Thank you for your comment. > ...
9 years, 7 months ago (2011-05-16 16:59:43 UTC) #17
Ilya Sherman
9 years, 6 months ago (2011-06-04 01:56:54 UTC) #18
Closing, as I think these changes have all been incorporated into other CLs.

Powered by Google App Engine
This is Rietveld 408576698