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

Issue 2640783002: [Password Generation] Send id attribute to server for HTML based form classifier (Closed)

Created:
3 years, 11 months ago by kolos1
Modified:
3 years, 11 months ago
Reviewers:
Mathieu, sebsg, Mike West, dcheng
CC:
browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, estade+watch_chromium.org, jam, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Generation] Send id attribute to server for HTML based form classifier name or id attribute is already sent to the server (see |name| field in AutofillUploadContents). This CL makes sure that we send both attributes. This data will be used by HTML based form classifier. The data will be sent only if AutofillFieldMetadata is enabled (i.e. only for dev and beta). This CL also removes |css_classes| parameter in FillUploadField, because it is needed only in one test (FormStructureTest.EncodeUploadRequest_WithCssClassesAndIds), but require |nullptr| in bunch of other cases. The parameter was added in this CL (https://codereview.chromium.org/2073093002/). Review-Url: https://codereview.chromium.org/2640783002 Cr-Commit-Position: refs/heads/master@{#445042} Committed: https://chromium.googlesource.com/chromium/src/+/239ed9a242283d9af2e37f609d8e13086ddac1e0

Patch Set 1 : Run bot #

Patch Set 2 : Small format fix #

Patch Set 3 : Fixed failed test #

Total comments: 4

Patch Set 4 : Changes addressed to reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -63 lines) Patch
M chrome/browser/autofill/autofill_server_browsertest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_test_utils.h View 1 chunk +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_test_utils.cc View 2 chunks +1 line, -4 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 22 chunks +59 lines, -46 lines 0 comments Download
M components/autofill/core/browser/proto/server.proto View 3 chunks +7 lines, -2 lines 0 comments Download
M components/autofill/core/common/form_field_data.h View 2 chunks +2 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_field_data.cc View 1 7 chunks +26 lines, -2 lines 0 comments Download
M components/autofill/core/common/form_field_data_unittest.cc View 5 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
kolos1
sebsg@chromium.org: Please review changes in autofill_server_browsertest.cc form_autofill_util.cc autofill_test_utils* form_structure* server.proto (Yes, I keep in mind ...
3 years, 11 months ago (2017-01-18 15:03:23 UTC) #8
sebsg
The files you assigned to me lgtm. And thanks for you change to the tests!!! ...
3 years, 11 months ago (2017-01-18 19:22:49 UTC) #11
kolos1
Hi Sebastien, Thanks for fast reviewing. I believe that treating the name as only name ...
3 years, 11 months ago (2017-01-19 11:09:08 UTC) #12
kolos1
https://codereview.chromium.org/2640783002/diff/100001/chrome/renderer/autofill/form_autofill_browsertest.cc File chrome/renderer/autofill/form_autofill_browsertest.cc (right): https://codereview.chromium.org/2640783002/diff/100001/chrome/renderer/autofill/form_autofill_browsertest.cc#newcode2413 chrome/renderer/autofill/form_autofill_browsertest.cc:2413: EXPECT_TRUE(form.fields[2].id.empty()); On 2017/01/18 19:22:49, sebsg wrote: > Can you ...
3 years, 11 months ago (2017-01-19 11:09:16 UTC) #13
kolos1
Hi Mathieu and Daniel! Friendly ping. Looks like the general design will stay the same. ...
3 years, 11 months ago (2017-01-19 11:15:21 UTC) #14
Mathieu
Hi Maxim, lgtm for the test, thanks
3 years, 11 months ago (2017-01-19 19:51:17 UTC) #16
kolos1
Hi Mike, Could you please review changes in autofill_types*? Thanks. Regards, Maxim
3 years, 11 months ago (2017-01-20 09:29:52 UTC) #18
Mike West
Adding the property to mojo LGTM.
3 years, 11 months ago (2017-01-20 10:42:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640783002/140001
3 years, 11 months ago (2017-01-20 11:40:25 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 11:45:45 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/239ed9a242283d9af2e37f609d8e...

Powered by Google App Engine
This is Rietveld 408576698