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

Issue 1622073002: [Autofill] Remove longest common prefix from field names when running heuristics. (Closed)

Created:
4 years, 11 months ago by Mathieu
Modified:
4 years, 11 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Remove longest common prefix from field names when running heuristics. Some frameworks put a prefix on all fields within a form (see bug), which confuses the heuristics. BUG=497850 TEST=DataDrivenHeuristics,FormStructure Committed: https://crrev.com/d3e976ba68f40b1ce07403d90dee6bc0d6efa961 Cr-Commit-Position: refs/heads/master@{#371277}

Patch Set 1 #

Patch Set 2 : tests #

Total comments: 6

Patch Set 3 : StringPiece16 #

Total comments: 4

Patch Set 4 : std::move #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -3 lines) Patch
A chrome/test/data/autofill/heuristics/input/bug_497850.html View 1 1 chunk +197 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/heuristics/output/bug_497850.out View 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_field.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_field.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_field.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 chunks +55 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 chunks +123 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
Mathieu
Hi, please have a look!
4 years, 11 months ago (2016-01-24 02:12:46 UTC) #6
vabr (Chromium)
lgtm https://codereview.chromium.org/1622073002/diff/80001/components/autofill/core/browser/autofill_field.h File components/autofill/core/browser/autofill_field.h (right): https://codereview.chromium.org/1622073002/diff/80001/components/autofill/core/browser/autofill_field.h#newcode56 components/autofill/core/browser/autofill_field.h:56: void set_parseable_name(const base::string16& parseable_name) { nit: passing by ...
4 years, 11 months ago (2016-01-25 10:10:26 UTC) #7
Mathieu
Hi, Can you have another look to make sure this is what you had in ...
4 years, 11 months ago (2016-01-25 15:52:53 UTC) #8
vabr (Chromium)
One important comment and one optional, otherwise LGTM. Thanks! Vaclav https://codereview.chromium.org/1622073002/diff/100001/components/autofill/core/browser/autofill_field.h File components/autofill/core/browser/autofill_field.h (right): https://codereview.chromium.org/1622073002/diff/100001/components/autofill/core/browser/autofill_field.h#newcode57 ...
4 years, 11 months ago (2016-01-25 16:40:27 UTC) #9
Mathieu
Thanks, I'll send it to the CQ! https://codereview.chromium.org/1622073002/diff/100001/components/autofill/core/browser/autofill_field.h File components/autofill/core/browser/autofill_field.h (right): https://codereview.chromium.org/1622073002/diff/100001/components/autofill/core/browser/autofill_field.h#newcode57 components/autofill/core/browser/autofill_field.h:57: parseable_name_ = ...
4 years, 11 months ago (2016-01-25 18:06:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622073002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622073002/120001
4 years, 11 months ago (2016-01-25 18:06:46 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 11 months ago (2016-01-25 19:26:23 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d3e976ba68f40b1ce07403d90dee6bc0d6efa961 Cr-Commit-Position: refs/heads/master@{#371277}
4 years, 11 months ago (2016-01-25 19:28:57 UTC) #17
vabr (Chromium)
4 years, 11 months ago (2016-01-26 08:56:44 UTC) #18
Message was sent while issue was closed.
Hi Mathieu,

A follow-up to the std::move discussion -- turns out the old way (const ref
without move) is still preferred in Chromium [1]. While value+move is certainly
not disallowed, I will refrain from pushing for it in reviews in the future.
Sorry about that.

Cheers,
Vaclav

[1]
https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/string...

Powered by Google App Engine
This is Rietveld 408576698