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

Issue 1380002: Label scraping for AutoFill.... (Closed)

Created:
10 years, 9 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews, jam+cc_chromium.org, brettw-cc_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Label scraping for AutoFill. Adds label scraping to AutoFill. Infers labels from surrounding context of input fields in the WebKit DOM. Specific cases added are: - Text element immediately preceeding INPUT element. Eg. First name:<INPUT type="text" id="firstname" value="John"/> - Paragraph element containing text immediately preceeding INPUT element. Eg. <P>First name:</P><INPUT type="text" id="firstname" value="John"/> BUG=33031 TEST=FormManagerTest.LabelsFromInferredParagraph, FormManagerTest.LabelsFromInferredText, FormStructureTest.HeuristicsLabelsOnly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42720

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -44 lines) Patch
M chrome/browser/autofill/form_structure_unittest.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/renderer/form_manager.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/form_manager.cc View 2 chunks +48 lines, -5 lines 0 comments Download
M chrome/renderer/form_manager_unittest.cc View 1 2 10 chunks +126 lines, -39 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dhollowa
10 years, 9 months ago (2010-03-26 00:17:43 UTC) #1
James Hawkins
http://codereview.chromium.org/1380002/diff/1/2 File chrome/browser/autofill/form_structure_unittest.cc (right): http://codereview.chromium.org/1380002/diff/1/2#newcode391 chrome/browser/autofill/form_structure_unittest.cc:391: values.method = ASCIIToUTF16("post"); Can you add a comment that ...
10 years, 9 months ago (2010-03-26 00:29:06 UTC) #2
dhollowa
http://codereview.chromium.org/1380002/diff/1/2 File chrome/browser/autofill/form_structure_unittest.cc (right): http://codereview.chromium.org/1380002/diff/1/2#newcode391 chrome/browser/autofill/form_structure_unittest.cc:391: values.method = ASCIIToUTF16("post"); On 2010/03/26 00:29:07, James Hawkins wrote: ...
10 years, 9 months ago (2010-03-26 00:54:22 UTC) #3
James Hawkins
LGTM after final comments are addressed. http://codereview.chromium.org/1380002/diff/7002/8001 File chrome/browser/autofill/form_structure_unittest.cc (right): http://codereview.chromium.org/1380002/diff/7002/8001#newcode387 chrome/browser/autofill/form_structure_unittest.cc:387: // Tests a ...
10 years, 9 months ago (2010-03-26 01:00:30 UTC) #4
dhollowa
10 years, 9 months ago (2010-03-26 01:57:29 UTC) #5
http://codereview.chromium.org/1380002/diff/7002/8001
File chrome/browser/autofill/form_structure_unittest.cc (right):

http://codereview.chromium.org/1380002/diff/7002/8001#newcode387
chrome/browser/autofill/form_structure_unittest.cc:387: // Tests a sequence of
FormField's where only labels are supplied to heuristics
On 2010/03/26 01:00:30, James Hawkins wrote:
> nit: no apostrophe

Done.

http://codereview.chromium.org/1380002/diff/7002/8003
File chrome/renderer/form_manager_unittest.cc (right):

http://codereview.chromium.org/1380002/diff/7002/8003#newcode24
chrome/renderer/form_manager_unittest.cc:24: class FormManagerTest : public
RenderViewTest {
On 2010/03/26 01:00:30, James Hawkins wrote:
> Please change this to 'typedef RenderViewTest FormManagerTest;'

Done.

Powered by Google App Engine
This is Rietveld 408576698