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

Issue 310463005: Fill in more name fields with requestAutocomplete (Closed)

Created:
6 years, 6 months ago by Evan Stade
Modified:
6 years, 6 months ago
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Fill in more name fields with requestAutocomplete Parse full names more intelligently with a rough port of the Android contact name splitter. Only does Western names well; CJK are TODO. Save and sync the full name separately from the name pieces. BUG=241886 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278641

Patch Set 1 #

Patch Set 2 : port #

Patch Set 3 : abuse SetRawInfo #

Total comments: 46

Patch Set 4 : more tests #

Total comments: 1

Patch Set 5 : isherman review #

Patch Set 6 : adjust testcase #

Patch Set 7 : rename #

Total comments: 2

Patch Set 8 : sync stuff #

Patch Set 9 : db migration test #

Total comments: 5

Patch Set 10 : hack #

Total comments: 1

Patch Set 11 : dont mess with migration code #

Total comments: 2

Patch Set 12 : todo #

Total comments: 23

Patch Set 13 : review comments #

Patch Set 14 : one more migration fix #

Total comments: 2

Patch Set 15 : fix test #

Patch Set 16 : ctor instead of Assign #

Patch Set 17 : debug code for windows #

Patch Set 18 : guess assign(self->end()) doesn't work on win #

Patch Set 19 : sync #

Patch Set 20 : fix compile errors #

Patch Set 21 : dumb test is dumb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -124 lines) Patch
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +61 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +24 lines, -27 lines 0 comments Download
M components/autofill/core/browser/contact_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -10 lines 0 comments Download
M components/autofill/core/browser/contact_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +168 lines, -35 lines 0 comments Download
M components/autofill/core/browser/contact_info_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +63 lines, -27 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +83 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +94 lines, -9 lines 0 comments Download
A + components/test/data/web_database/version_56.sql View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M components/webdata/common/web_database.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +64 lines, -1 line 0 comments Download
M sync/protocol/autofill_specifics.proto View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
Evan Stade
https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc File components/autofill/core/browser/contact_info.cc (right): https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc#newcode210 components/autofill/core/browser/contact_info.cc:210: SetFullName(value); I think this needs to happen in SetInfo, ...
6 years, 6 months ago (2014-06-03 01:36:35 UTC) #1
Ilya Sherman
Thanks, Evan. This is definitely a nice improvement. However, it's still based on heuristics, and ...
6 years, 6 months ago (2014-06-03 22:53:35 UTC) #2
Evan Stade
> However, it's still based > on heuristics, and hence is going to fail for ...
6 years, 6 months ago (2014-06-03 23:55:35 UTC) #3
Ilya Sherman
https://codereview.chromium.org/310463005/diff/30001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (right): https://codereview.chromium.org/310463005/diff/30001/chrome/browser/ui/autofill/autofill_dialog_common.cc#newcode47 chrome/browser/ui/autofill/autofill_dialog_common.cc:47: return autofill_type.GetStorableType() == NAME_FULL; On 2014/06/03 23:55:34, Evan Stade ...
6 years, 6 months ago (2014-06-04 00:13:46 UTC) #4
Evan Stade
https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc File components/autofill/core/browser/contact_info.cc (right): https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc#newcode44 components/autofill/core/browser/contact_info.cc:44: base::TrimString(element, base::ASCIIToUTF16("."), &trimmed_element); On 2014/06/04 00:13:45, Ilya Sherman wrote: ...
6 years, 6 months ago (2014-06-04 00:24:23 UTC) #5
Ilya Sherman
https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc File components/autofill/core/browser/contact_info.cc (right): https://codereview.chromium.org/310463005/diff/30001/components/autofill/core/browser/contact_info.cc#newcode44 components/autofill/core/browser/contact_info.cc:44: base::TrimString(element, base::ASCIIToUTF16("."), &trimmed_element); On 2014/06/04 00:24:23, Evan Stade wrote: ...
6 years, 6 months ago (2014-06-04 00:34:33 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/310463005/diff/110001/components/autofill/core/browser/contact_info.cc File components/autofill/core/browser/contact_info.cc (right): https://chromiumcodereview.appspot.com/310463005/diff/110001/components/autofill/core/browser/contact_info.cc#newcode194 components/autofill/core/browser/contact_info.cc:194: given_ = value; Btw, what happens if I call ...
6 years, 6 months ago (2014-06-04 01:22:38 UTC) #7
Evan Stade
(still working on the autofill table update, so this patch is not ready for re-review) ...
6 years, 6 months ago (2014-06-04 01:26:29 UTC) #8
Evan Stade
+nick for sync/ +shess for components/webdata and components/test/data/web_database/version_56.sql
6 years, 6 months ago (2014-06-04 23:11:58 UTC) #9
Scott Hess - ex-Googler
https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc#newcode173 components/autofill/core/browser/webdata/autofill_table.cc:173: db->DoesColumnExist("autofill_profile_names", "full_name"); I may be missing something, here. How ...
6 years, 6 months ago (2014-06-04 23:48:17 UTC) #10
Evan Stade
https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc#newcode173 components/autofill/core/browser/webdata/autofill_table.cc:173: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/04 23:48:17, shess wrote: > I ...
6 years, 6 months ago (2014-06-05 18:16:28 UTC) #11
Evan Stade
ping isherman, nick, shess https://codereview.chromium.org/310463005/diff/170001/components/autofill/core/browser/contact_info.cc File components/autofill/core/browser/contact_info.cc (right): https://codereview.chromium.org/310463005/diff/170001/components/autofill/core/browser/contact_info.cc#newcode256 components/autofill/core/browser/contact_info.cc:256: if (FullName() == full) NB
6 years, 6 months ago (2014-06-06 23:10:44 UTC) #12
Scott Hess - ex-Googler
https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc#newcode173 components/autofill/core/browser/webdata/autofill_table.cc:173: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/05 18:16:28, Evan Stade wrote: > ...
6 years, 6 months ago (2014-06-06 23:55:36 UTC) #13
Ilya Sherman
https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc#newcode173 components/autofill/core/browser/webdata/autofill_table.cc:173: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/06 23:55:36, shess wrote: > On ...
6 years, 6 months ago (2014-06-07 00:02:38 UTC) #14
ncarter (slow)
Sorry for not noticing this review sooner. -me, +maniscalo
6 years, 6 months ago (2014-06-07 00:03:11 UTC) #15
maniscalco
On 2014/06/07 00:03:11, ncarter wrote: > Sorry for not noticing this review sooner. -me, +maniscalo ...
6 years, 6 months ago (2014-06-09 17:21:27 UTC) #16
Evan Stade
https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/150001/components/autofill/core/browser/webdata/autofill_table.cc#newcode173 components/autofill/core/browser/webdata/autofill_table.cc:173: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/07 00:02:38, Ilya Sherman wrote: > ...
6 years, 6 months ago (2014-06-09 17:48:40 UTC) #17
Scott Hess - ex-Googler
I could support either direction WRT the other function's column-based decisions. I still don't like ...
6 years, 6 months ago (2014-06-09 21:50:50 UTC) #18
Evan Stade
https://codereview.chromium.org/310463005/diff/190001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/190001/components/autofill/core/browser/webdata/autofill_table.cc#newcode295 components/autofill/core/browser/webdata/autofill_table.cc:295: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/09 21:50:50, shess wrote: > Sigh ...
6 years, 6 months ago (2014-06-12 01:55:33 UTC) #19
Ilya Sherman
Thanks, Evan. https://codereview.chromium.org/310463005/diff/210001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (right): https://codereview.chromium.org/310463005/diff/210001/chrome/browser/ui/autofill/autofill_dialog_common.cc#newcode45 chrome/browser/ui/autofill/autofill_dialog_common.cc:45: // First and last name are parsed ...
6 years, 6 months ago (2014-06-12 23:25:26 UTC) #20
Scott Hess - ex-Googler
https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc#newcode199 components/autofill/core/browser/webdata/autofill_table.cc:199: } On 2014/06/12 23:25:25, Ilya Sherman wrote: > Optional ...
6 years, 6 months ago (2014-06-13 17:43:27 UTC) #21
Ilya Sherman
https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc#newcode199 components/autofill/core/browser/webdata/autofill_table.cc:199: } On 2014/06/13 17:43:27, shess wrote: > On 2014/06/12 ...
6 years, 6 months ago (2014-06-13 19:33:00 UTC) #22
Scott Hess - ex-Googler
https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/210001/components/autofill/core/browser/webdata/autofill_table.cc#newcode296 components/autofill/core/browser/webdata/autofill_table.cc:296: db->DoesColumnExist("autofill_profile_names", "full_name"); On 2014/06/13 19:32:59, Ilya Sherman wrote: > ...
6 years, 6 months ago (2014-06-13 19:42:47 UTC) #23
Evan Stade
https://codereview.chromium.org/310463005/diff/210001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (right): https://codereview.chromium.org/310463005/diff/210001/chrome/browser/ui/autofill/autofill_dialog_common.cc#newcode45 chrome/browser/ui/autofill/autofill_dialog_common.cc:45: // First and last name are parsed from full ...
6 years, 6 months ago (2014-06-14 01:17:24 UTC) #24
Ilya Sherman
LGTM. Thanks, Evan.
6 years, 6 months ago (2014-06-16 21:25:05 UTC) #25
Scott Hess - ex-Googler
lgtm, minor nit. No need for add'l review if you make that change. Thanks for ...
6 years, 6 months ago (2014-06-16 21:55:55 UTC) #26
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-16 22:57:26 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/270001
6 years, 6 months ago (2014-06-16 22:59:07 UTC) #28
Evan Stade
The CQ bit was unchecked by estade@chromium.org
6 years, 6 months ago (2014-06-16 23:04:08 UTC) #29
Evan Stade
thanks for the reviews. https://codereview.chromium.org/310463005/diff/250001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/310463005/diff/250001/components/autofill/core/browser/webdata/autofill_table.cc#newcode332 components/autofill/core/browser/webdata/autofill_table.cc:332: "VALUES (?,?,?,?,?)")); On 2014/06/16 21:55:54, ...
6 years, 6 months ago (2014-06-16 23:06:05 UTC) #30
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-16 23:06:15 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/290001
6 years, 6 months ago (2014-06-16 23:07:45 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 11:59:00 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/21565)
6 years, 6 months ago (2014-06-17 11:59:01 UTC) #34
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-18 21:47:13 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/330001
6 years, 6 months ago (2014-06-18 21:48:40 UTC) #36
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-18 23:38:27 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/350001
6 years, 6 months ago (2014-06-18 23:39:55 UTC) #38
Ilya Sherman
Note: You'll probably need to update some tests since https://codereview.chromium.org/261993006/ has landed.
6 years, 6 months ago (2014-06-19 00:03:00 UTC) #39
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-19 01:50:18 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/370001
6 years, 6 months ago (2014-06-19 01:53:42 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 15:01:30 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/162921)
6 years, 6 months ago (2014-06-19 15:01:31 UTC) #43
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 6 months ago (2014-06-19 19:07:21 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/310463005/390001
6 years, 6 months ago (2014-06-19 19:09:46 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 01:09:31 UTC) #46
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 07:18:37 UTC) #47
Message was sent while issue was closed.
Change committed as 278641

Powered by Google App Engine
This is Rietveld 408576698