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

Issue 1999623002: [Autofill] Add typemap for autofill:FormFieldData and autofill::FormData. (Closed)

Created:
4 years, 7 months ago by leonhsl(Using Gerrit)
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, bondd+autofillwatch_chromium.org, browser-components-watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, estade+watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, qsr+mojo_chromium.org, rouslan+autofill_chromium.org, vabr+watchlistautofill_chromium.org, viettrungluu+watch_chromium.org, yzshen+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] Add typemap for autofill:FormFieldData and autofill::FormData. This will facilitate the work to mojofy those IPC messages carrying these two types of struct, which I will do with follow up CLs. TEST=components_unittests --gtest_filter=AutofillTypeTraitsTestImpl* BUG=582391 Committed: https://crrev.com/77adee7146a554a4bcf4046988f9183d7707b54f Cr-Commit-Position: refs/heads/master@{#399880}

Patch Set 1 #

Patch Set 2 : Fix gyp #

Patch Set 3 : Fix gn check #

Total comments: 3

Patch Set 4 : Fix gyp #

Total comments: 11

Patch Set 5 : Address comments from Vaclav, Yuzhu and Daniel #

Patch Set 6 : Rebase only #

Total comments: 4

Patch Set 7 : Lambda expressions(default capture --> explicit capture) #

Patch Set 8 : Rebase and add TODO comments #

Patch Set 9 : Rebase only #

Patch Set 10 : Leverage EnumTraits #

Total comments: 10

Patch Set 11 : Address comments from dcheng #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -13 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 3 chunks +62 lines, -0 lines 0 comments Download
A + components/autofill/content/public/cpp/BUILD.gn View 1 chunk +6 lines, -7 lines 0 comments Download
A components/autofill/content/public/cpp/autofill_types.typemap View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
A components/autofill/content/public/cpp/autofill_types_struct_traits.h View 1 2 3 4 5 6 7 8 9 1 chunk +142 lines, -0 lines 0 comments Download
A components/autofill/content/public/cpp/autofill_types_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +180 lines, -0 lines 0 comments Download
A components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
M components/autofill/content/public/interfaces/BUILD.gn View 1 chunk +24 lines, -0 lines 0 comments Download
A components/autofill/content/public/interfaces/autofill_types.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A components/autofill/content/public/interfaces/test_autofill_types.mojom View 1 chunk +12 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/test/run_all_unittests.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -5 lines 0 comments Download
M components/typemaps.gni View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 84 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/20001
4 years, 7 months ago (2016-05-20 05:52:59 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/69406) android_clang_dbg_recipe on ...
4 years, 7 months ago (2016-05-20 05:56:57 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/40001
4 years, 7 months ago (2016-05-20 06:13:15 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/9105)
4 years, 7 months ago (2016-05-20 06:31:34 UTC) #8
leonhsl(Using Gerrit)
Hi, Would you PTAL at ps#3? yzshen@: For review as mojo expert. And, I leave ...
4 years, 7 months ago (2016-05-20 07:05:46 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/60001
4 years, 7 months ago (2016-05-20 10:03:36 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 11:10:19 UTC) #14
vabr (Chromium)
LGTM, thank you! Vaclav https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc File components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc (right): https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc#newcode45 components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc:45: std::vector<const char*> kOptions = {"Option1", ...
4 years, 7 months ago (2016-05-23 12:47:37 UTC) #15
yzshen1
+dcheng for StructTraits security review. https://codereview.chromium.org/1999623002/diff/40001/components/autofill/content/public/interfaces/autofill_types.mojom File components/autofill/content/public/interfaces/autofill_types.mojom (right): https://codereview.chromium.org/1999623002/diff/40001/components/autofill/content/public/interfaces/autofill_types.mojom#newcode16 components/autofill/content/public/interfaces/autofill_types.mojom:16: enum TextDirection { On ...
4 years, 7 months ago (2016-05-23 16:59:14 UTC) #17
dcheng
https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc File components/autofill/content/public/cpp/autofill_types_struct_traits.cc (right): https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc#newcode38 components/autofill/content/public/cpp/autofill_types_struct_traits.cc:38: out->role = static_cast<autofill::FormFieldData::RoleAttribute>(data.role()); Is this being used already? It ...
4 years, 7 months ago (2016-05-23 20:43:44 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/80001
4 years, 7 months ago (2016-05-24 06:09:16 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/10293) ios-device-gn on ...
4 years, 7 months ago (2016-05-24 06:11:20 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/100001
4 years, 7 months ago (2016-05-24 06:20:42 UTC) #24
leonhsl(Using Gerrit)
Thanks all for kindly review~ Uploaded ps#5 to address comments and ps#6 is only for ...
4 years, 7 months ago (2016-05-24 06:38:20 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-24 07:36:48 UTC) #27
vabr (Chromium)
Still LGTM. https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/interfaces/autofill_types.mojom File components/autofill/content/public/interfaces/autofill_types.mojom (right): https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/interfaces/autofill_types.mojom#newcode34 components/autofill/content/public/interfaces/autofill_types.mojom:34: bool is_checkable; On 2016/05/24 06:38:20, leonhsl wrote: ...
4 years, 7 months ago (2016-05-24 07:40:30 UTC) #28
Mathieu
On 2016/05/24 at 07:40:30, vabr wrote: > Still LGTM. > > https://codereview.chromium.org/1999623002/diff/60001/components/autofill/content/public/interfaces/autofill_types.mojom > File components/autofill/content/public/interfaces/autofill_types.mojom ...
4 years, 7 months ago (2016-05-24 13:26:37 UTC) #29
yzshen1
lgtm
4 years, 7 months ago (2016-05-24 15:49:24 UTC) #30
dcheng
https://codereview.chromium.org/1999623002/diff/100001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc File components/autofill/content/public/cpp/autofill_types_struct_traits.cc (right): https://codereview.chromium.org/1999623002/diff/100001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc#newcode18 components/autofill/content/public/cpp/autofill_types_struct_traits.cc:18: case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_PRESENTATION: Hm, there's no way to have a ...
4 years, 7 months ago (2016-05-24 22:03:48 UTC) #31
yzshen1
https://codereview.chromium.org/1999623002/diff/100001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc File components/autofill/content/public/cpp/autofill_types_struct_traits.cc (right): https://codereview.chromium.org/1999623002/diff/100001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc#newcode18 components/autofill/content/public/cpp/autofill_types_struct_traits.cc:18: case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_PRESENTATION: On 2016/05/24 22:03:48, dcheng wrote: > Hm, ...
4 years, 7 months ago (2016-05-24 22:09:47 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999623002/120001
4 years, 7 months ago (2016-05-25 06:11:30 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-25 07:19:50 UTC) #36
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 07:19:59 UTC) #37
leonhsl(Using Gerrit)
Uploaded ps#7 to address comments, would you PTAL? Thanks~ +blundell@ for review as //components OWNER. ...
4 years, 7 months ago (2016-05-25 07:31:23 UTC) #39
vabr (Chromium)
On 2016/05/25 07:31:23, leonhsl wrote: > +blundell@ for review as //components OWNER. Thanks~ > You ...
4 years, 7 months ago (2016-05-25 07:38:02 UTC) #40
leonhsl(Using Gerrit)
On 2016/05/25 07:38:02, vabr (Chromium) wrote: > On 2016/05/25 07:31:23, leonhsl wrote: > > +blundell@ ...
4 years, 7 months ago (2016-05-25 07:44:03 UTC) #41
blundell
lgtm
4 years, 7 months ago (2016-05-25 09:04:54 UTC) #42
leonhsl(Using Gerrit)
Soft ping.. dcheng@, Thanks~
4 years, 7 months ago (2016-05-27 02:12:33 UTC) #43
dcheng
On 2016/05/27 at 02:12:33, leon.han wrote: > Soft ping.. dcheng@, Thanks~ Are you able to ...
4 years, 6 months ago (2016-05-27 15:32:35 UTC) #44
leonhsl(Using Gerrit)
On 2016/05/27 15:32:35, dcheng wrote: > On 2016/05/27 at 02:12:33, leon.han wrote: > > Soft ...
4 years, 6 months ago (2016-05-29 12:30:19 UTC) #45
yzshen1
On 2016/05/29 12:30:19, leonhsl wrote: > On 2016/05/27 15:32:35, dcheng wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-05-31 20:47:26 UTC) #46
yzshen1
On 2016/05/29 12:30:19, leonhsl wrote: > On 2016/05/27 15:32:35, dcheng wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-05-31 20:47:29 UTC) #47
leonhsl(Using Gerrit)
On 2016/05/31 20:47:29, yzshen1 wrote: > On 2016/05/29 12:30:19, leonhsl wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-06-01 02:53:38 UTC) #48
dcheng
On 2016/06/01 at 02:53:38, leon.han wrote: > On 2016/05/31 20:47:29, yzshen1 wrote: > > On ...
4 years, 6 months ago (2016-06-02 00:19:48 UTC) #49
leonhsl(Using Gerrit)
On 2016/06/02 00:19:48, dcheng wrote: > On 2016/06/01 at 02:53:38, leon.han wrote: > > On ...
4 years, 6 months ago (2016-06-02 05:34:20 UTC) #50
dcheng
On 2016/06/02 at 05:34:20, leon.han wrote: > On 2016/06/02 00:19:48, dcheng wrote: > > On ...
4 years, 6 months ago (2016-06-03 04:17:57 UTC) #51
leonhsl(Using Gerrit)
On 2016/06/03 04:17:57, dcheng wrote: > On 2016/06/02 at 05:34:20, leon.han wrote: > > On ...
4 years, 6 months ago (2016-06-03 07:48:41 UTC) #52
leonhsl(Using Gerrit)
On 2016/06/03 07:48:41, leonhsl wrote: > On 2016/06/03 04:17:57, dcheng wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-07 07:17:47 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/160001
4 years, 6 months ago (2016-06-08 02:21:38 UTC) #56
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 03:51:01 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/200001
4 years, 6 months ago (2016-06-10 06:00:15 UTC) #60
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/151162) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-10 06:12:07 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/220001
4 years, 6 months ago (2016-06-10 06:23:48 UTC) #65
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-10 07:33:34 UTC) #67
leonhsl(Using Gerrit)
dcheng@, would you PTAL at ps#10? thanks
4 years, 6 months ago (2016-06-10 07:47:21 UTC) #68
leonhsl(Using Gerrit)
Ping dcheng@
4 years, 6 months ago (2016-06-13 09:51:41 UTC) #69
dcheng
https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc File components/autofill/content/public/cpp/autofill_types_struct_traits.cc (right): https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/cpp/autofill_types_struct_traits.cc#newcode44 components/autofill/content/public/cpp/autofill_types_struct_traits.cc:44: I think this should be NOTREACHED() as well? Mojo ...
4 years, 6 months ago (2016-06-13 20:59:36 UTC) #70
leonhsl(Using Gerrit)
dcheng@, thanks for your time to review. Uploaded ps#11 to address comments, please take another ...
4 years, 6 months ago (2016-06-14 01:46:04 UTC) #71
dcheng
https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/interfaces/autofill_types.mojom File components/autofill/content/public/interfaces/autofill_types.mojom (right): https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/interfaces/autofill_types.mojom#newcode38 components/autofill/content/public/interfaces/autofill_types.mojom:38: uint64 max_length; On 2016/06/14 01:46:04, leonhsl wrote: > On ...
4 years, 6 months ago (2016-06-14 04:20:56 UTC) #72
leonhsl(Using Gerrit)
https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/interfaces/autofill_types.mojom File components/autofill/content/public/interfaces/autofill_types.mojom (right): https://codereview.chromium.org/1999623002/diff/220001/components/autofill/content/public/interfaces/autofill_types.mojom#newcode38 components/autofill/content/public/interfaces/autofill_types.mojom:38: uint64 max_length; On 2016/06/14 04:20:56, dcheng wrote: > On ...
4 years, 6 months ago (2016-06-14 05:43:33 UTC) #73
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/240001
4 years, 6 months ago (2016-06-15 03:16:25 UTC) #75
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-15 04:26:38 UTC) #77
dcheng
LGTM
4 years, 6 months ago (2016-06-15 08:35:26 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999623002/240001
4 years, 6 months ago (2016-06-15 11:04:05 UTC) #81
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 6 months ago (2016-06-15 11:07:45 UTC) #82
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 11:09:49 UTC) #84
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/77adee7146a554a4bcf4046988f9183d7707b54f
Cr-Commit-Position: refs/heads/master@{#399880}

Powered by Google App Engine
This is Rietveld 408576698