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

Issue 7063031: Heuristics for grabber-continental.com.out (select-one) (Closed)

Created:
9 years, 7 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
Ilya Sherman, takano.naoki
CC:
chromium-reviews, GeorgeY, Paweł Hajdan Jr., Ilya Sherman
Visibility:
Public.

Description

Heuristics for grabber-continental.com.out (select-one) Adds specific input types to the field_type.h bitfield to utilize the "select-one" signal in identifying the Country, State, and Credit Card date fields. Other fields should not classify now if the input type is "select-one". This is Phase 1 of fixes for the grabber-continental.com.html. Phase 2 will add lookahead logic for the "BusinessPhone" and "Email Address" issues. BUG=76299 TEST=FormStructureBrowserTest.DataDrivenHeuristics with test file grabber-continental.com.html Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86717

Patch Set 1 #

Total comments: 9

Patch Set 2 : Remove debugging and MONTH. #

Total comments: 4

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -23 lines) Patch
M chrome/browser/autofill/address_field.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/credit_card_field.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/autofill/email_field.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/autofill/form_field.h View 1 2 2 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/autofill/form_field.cc View 1 2 4 chunks +54 lines, -7 lines 0 comments Download
M chrome/browser/autofill/phone_field.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dhollowa
9 years, 7 months ago (2011-05-25 00:24:29 UTC) #1
honten.org
So I don't have to change anything for grabber-continental.com.out anymore? Should I close http://codereview.chromium.org/7038003/ http://codereview.chromium.org/7014011/ ...
9 years, 7 months ago (2011-05-25 00:32:10 UTC) #2
dhollowa
The analysis was extremely helpful. But I needed to think this through fully myself... This ...
9 years, 7 months ago (2011-05-25 00:42:10 UTC) #3
takano.naoki_gmail.com
I can't wait to fix them!! ;-) Anyway please let me know, once you finish ...
9 years, 7 months ago (2011-05-25 00:47:04 UTC) #4
Ilya Sherman
http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.cc File chrome/browser/autofill/form_field.cc (right): http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.cc#newcode152 chrome/browser/autofill/form_field.cc:152: return MatchAndAdvance(scanner, pattern, match_type, match); There don't seem to ...
9 years, 7 months ago (2011-05-25 03:52:02 UTC) #5
dhollowa
http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.cc File chrome/browser/autofill/form_field.cc (right): http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.cc#newcode152 chrome/browser/autofill/form_field.cc:152: return MatchAndAdvance(scanner, pattern, match_type, match); The credit card code ...
9 years, 7 months ago (2011-05-25 15:29:47 UTC) #6
Ilya Sherman
LGTM, thanks http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.h File chrome/browser/autofill/form_field.h (right): http://codereview.chromium.org/7063031/diff/1/chrome/browser/autofill/form_field.h#newcode97 chrome/browser/autofill/form_field.h:97: const AutofillField** match); On 2011/05/25 15:29:47, dhollowa ...
9 years, 7 months ago (2011-05-25 19:17:28 UTC) #7
dhollowa
9 years, 7 months ago (2011-05-25 21:55:42 UTC) #8
http://codereview.chromium.org/7063031/diff/6001/chrome/browser/autofill/form...
File chrome/browser/autofill/form_field.cc (right):

http://codereview.chromium.org/7063031/diff/6001/chrome/browser/autofill/form...
chrome/browser/autofill/form_field.cc:152: &&
IsTelephoneField(field->form_control_type)) {
On 2011/05/25 19:17:28, Ilya Sherman wrote:
> nit: The "&&" should be on the previous line.

Done.

http://codereview.chromium.org/7063031/diff/6001/chrome/browser/autofill/form...
File chrome/browser/autofill/form_field.h (right):

http://codereview.chromium.org/7063031/diff/6001/chrome/browser/autofill/form...
chrome/browser/autofill/form_field.h:47: // By default match label, name, for
input/text types.
On 2011/05/25 19:17:28, Ilya Sherman wrote:
> nit: "label, name, for" -> "label and name for"

Done.

Powered by Google App Engine
This is Rietveld 408576698