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

Issue 2013063002: Remove diacritics when normalizing autofill profile strings for comparison. (Closed)

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

Description

Remove diacritics when normalizing autofill profile strings for comparison. Uses the ICU Transliterator to remove accents (and other non-spacing marks) from characters that have an ASCII equivalents and transforms uppercase chars to lower case, while leaving other charcters unchanged. See: http://userguide.icu-project.org/transforms/general BUG=612043 R=mathp@chromium.org, sebsg@chromium.org Committed: https://crrev.com/96e2312ade0d985d9b2c4877f54dfacd7939bc9f Cr-Commit-Position: refs/heads/master@{#396748}

Patch Set 1 : Initial CL for Review #

Patch Set 2 : Expand unit-tests #

Total comments: 14

Patch Set 3 : Simplify normalization loop and expand test cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -42 lines) Patch
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 5 chunks +10 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 2 3 chunks +45 lines, -26 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 1 2 3 chunks +15 lines, -10 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Roger McFarlane (Chromium)
PTAL
4 years, 6 months ago (2016-05-26 15:30:20 UTC) #6
sebsg
On 2016/05/26 15:30:20, Roger McFarlane (Chromium) wrote: > PTAL The code looks but could you ...
4 years, 6 months ago (2016-05-26 16:26:07 UTC) #7
Roger McFarlane (Chromium)
Thanks! Another look?
4 years, 6 months ago (2016-05-27 15:50:07 UTC) #8
sebsg
On 2016/05/27 15:50:07, Roger McFarlane (Chromium) wrote: > Thanks! Another look? LGTM with nit. Thanks!
4 years, 6 months ago (2016-05-27 16:58:44 UTC) #9
sebsg
LGTM with nit. Thanks! https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_profile_unittest.cc File components/autofill/core/browser/autofill_profile_unittest.cc (right): https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_profile_unittest.cc#newcode1221 components/autofill/core/browser/autofill_profile_unittest.cc:1221: // uppercase. nit: ... in ...
4 years, 6 months ago (2016-05-27 16:59:14 UTC) #10
Mathieu
Thanks, comments https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_manager_unittest.cc File components/autofill/core/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_manager_unittest.cc#newcode3563 components/autofill/core/browser/autofill_manager_unittest.cc:3563: {"Ile de France", ADDRESS_HOME_STATE}, // Note: missing ...
4 years, 6 months ago (2016-05-27 17:47:13 UTC) #11
Roger McFarlane (Chromium)
Thanks. Another look? https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_manager_unittest.cc File components/autofill/core/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/2013063002/diff/40001/components/autofill/core/browser/autofill_manager_unittest.cc#newcode3563 components/autofill/core/browser/autofill_manager_unittest.cc:3563: {"Ile de France", ADDRESS_HOME_STATE}, // Note: ...
4 years, 6 months ago (2016-05-27 20:20:43 UTC) #12
Mathieu
lgtm thanks
4 years, 6 months ago (2016-05-27 20:26:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013063002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013063002/80001
4 years, 6 months ago (2016-05-30 16:50:13 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 6 months ago (2016-05-30 18:17:11 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 18:18:19 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/96e2312ade0d985d9b2c4877f54dfacd7939bc9f
Cr-Commit-Position: refs/heads/master@{#396748}

Powered by Google App Engine
This is Rietveld 408576698