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

Issue 2132103002: Split CJK full names into name parts correctly. (Closed)

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

Description

Split CJK full names into name parts correctly. This a a partial, somewhat naive, fix for a bug where CJK names were split the same way as western names. CJK names have the family name (surname) first, and don't usually have a space in-between the two parts. For a complete fix, we might need to improve Japanese name detection, when there is no space between the two names. It's unclear how often users actually enter their name without spaces in a form field. We might also want to fix the opposite use-case: when the user enters their first & last name in separate fields, we should infer their full name in the right order (with ordering based on the script used). BUG=89111 Committed: https://crrev.com/4a655982616cfd5c05744f509b5d088f9d93bb81 Cr-Commit-Position: refs/heads/master@{#405997}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed some comments and added a TODO. #

Total comments: 2

Patch Set 3 : Move a TODO. #

Total comments: 11

Patch Set 4 : Improve precision for splitting Korean names. #

Total comments: 8

Patch Set 5 : Assume 2-character CJK names are 1/1. #

Patch Set 6 : nits #

Patch Set 7 : Fix build on Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -3 lines) Patch
M components/autofill/core/browser/autofill_data_util.cc View 1 2 3 4 5 6 4 chunks +156 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_data_util_unittest.cc View 1 2 3 4 5 1 chunk +31 lines, -1 line 0 comments Download

Messages

Total messages: 31 (11 generated)
nicolaso
4 years, 5 months ago (2016-07-08 18:09:40 UTC) #3
Mathieu
Looks good, one question https://codereview.chromium.org/2132103002/diff/1/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/1/components/autofill/core/browser/autofill_data_util.cc#newcode130 components/autofill/core/browser/autofill_data_util.cc:130: // Returns true if |name| ...
4 years, 5 months ago (2016-07-11 13:49:15 UTC) #4
nicolaso
On 2016/07/11 13:49:15, Mathieu Perreault wrote: > Looks good, one question > > https://codereview.chromium.org/2132103002/diff/1/components/autofill/core/browser/autofill_data_util.cc > ...
4 years, 5 months ago (2016-07-11 15:28:46 UTC) #5
nicolaso
https://codereview.chromium.org/2132103002/diff/1/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/1/components/autofill/core/browser/autofill_data_util.cc#newcode130 components/autofill/core/browser/autofill_data_util.cc:130: // Returns true if |name| looks like a Korean ...
4 years, 5 months ago (2016-07-11 15:28:54 UTC) #6
Mathieu
lgtm, thanks https://codereview.chromium.org/2132103002/diff/20001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/20001/components/autofill/core/browser/autofill_data_util.cc#newcode157 components/autofill/core/browser/autofill_data_util.cc:157: // TODO(crbug.com/89111): Japanese names with no space ...
4 years, 5 months ago (2016-07-12 14:39:00 UTC) #7
sebsg
It LGTM for me but I'd wait to see if someone from a Korean office ...
4 years, 5 months ago (2016-07-12 18:13:36 UTC) #8
nicolaso
https://codereview.chromium.org/2132103002/diff/20001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/20001/components/autofill/core/browser/autofill_data_util.cc#newcode157 components/autofill/core/browser/autofill_data_util.cc:157: // TODO(crbug.com/89111): Japanese names with no space will be ...
4 years, 5 months ago (2016-07-12 18:46:08 UTC) #9
Jinsuk Kim
https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc#newcode38 components/autofill/core/browser/autofill_data_util.cc:38: // https://namu.wiki/w/%ED%95%9C%EA%B5%AD%EC%9D%98%20%EC%84%B1%EC%94%A8#s-6 Consider changing the reference to the article ...
4 years, 5 months ago (2016-07-12 22:50:48 UTC) #12
nicolaso
https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc#newcode38 components/autofill/core/browser/autofill_data_util.cc:38: // https://namu.wiki/w/%ED%95%9C%EA%B5%AD%EC%9D%98%20%EC%84%B1%EC%94%A8#s-6 On 2016/07/12 22:50:48, Jinsuk wrote: > Consider ...
4 years, 5 months ago (2016-07-13 16:31:06 UTC) #13
Jinsuk Kim
Thanks for the update. Looks great. https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/40001/components/autofill/core/browser/autofill_data_util.cc#newcode168 components/autofill/core/browser/autofill_data_util.cc:168: // Korean full ...
4 years, 5 months ago (2016-07-13 21:51:09 UTC) #14
nicolaso
https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc#newcode35 components/autofill/core/browser/autofill_data_util.cc:35: // The most common CJK surnames (last names) that ...
4 years, 5 months ago (2016-07-14 18:12:43 UTC) #15
gogerald1
lgtm with comments https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc#newcode214 components/autofill/core/browser/autofill_data_util.cc:214: } else if (name_tokens.size() == 2) ...
4 years, 5 months ago (2016-07-14 18:28:52 UTC) #16
nicolaso
https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc File components/autofill/core/browser/autofill_data_util.cc (right): https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc#newcode214 components/autofill/core/browser/autofill_data_util.cc:214: } else if (name_tokens.size() == 2) { On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 20:32:17 UTC) #17
Jinsuk Kim
On 2016/07/14 18:12:43, nicolaso wrote: > https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc > File components/autofill/core/browser/autofill_data_util.cc (right): > > https://codereview.chromium.org/2132103002/diff/60001/components/autofill/core/browser/autofill_data_util.cc#newcode35 > ...
4 years, 5 months ago (2016-07-14 21:35:44 UTC) #18
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/2132103002/100001
4 years, 5 months ago (2016-07-18 14:19:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/222544)
4 years, 5 months ago (2016-07-18 14:34:10 UTC) #23
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/2132103002/120001
4 years, 5 months ago (2016-07-18 14:47:24 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-18 15:25:17 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 15:25:26 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 15:26:44 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4a655982616cfd5c05744f509b5d088f9d93bb81
Cr-Commit-Position: refs/heads/master@{#405997}

Powered by Google App Engine
This is Rietveld 408576698