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

Issue 2121253002: Embed address normalization rewriting rules. (Closed)

Created:
4 years, 5 months ago by Roger McFarlane (Chromium)
Modified:
4 years, 5 months ago
Reviewers:
Mathieu, sebsg
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

Embed address normalization rewriting rules. This CL adds a table of string rewrite rules, keyed by country code, to aid in address normalization when comparing autofill profiles. The rules for each country code are stored as static constant string tables and compiled to regular expression replacement params on first use, and subsequently cached. R=mathp@chromium.org, sebsg@chromium.org BUG=618095 Committed: https://crrev.com/0d2a71a993405545d9a735e5a8d5807815ee24c2 Cr-Commit-Position: refs/heads/master@{#404158}

Patch Set 1 #

Patch Set 2 : fix try bots #

Total comments: 8

Patch Set 3 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4000 lines, -40 lines) Patch
M components/autofill.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_rewriter.h View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_rewriter.cc View 1 2 1 chunk +129 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_rewriter_rules.cc View 1 2 1 chunk +3500 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_rewriter_unittest.cc View 1 2 1 chunk +284 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_comparator.h View 1 chunk +0 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_comparator.cc View 7 chunks +15 lines, -34 lines 0 comments Download
M components/components_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Mathieu
lgtm, can we confirm that even though it's compile on use for a given region, ...
4 years, 5 months ago (2016-07-06 17:50:46 UTC) #1
Roger McFarlane (Chromium)
Thanks! Seb, do you have any comments? https://codereview.chromium.org/2121253002/diff/20001/components/autofill/core/browser/address_rewriter.cc File components/autofill/core/browser/address_rewriter.cc (right): https://codereview.chromium.org/2121253002/diff/20001/components/autofill/core/browser/address_rewriter.cc#newcode46 components/autofill/core/browser/address_rewriter.cc:46: // Return ...
4 years, 5 months ago (2016-07-06 21:28:38 UTC) #4
sebsg
This lgtm, great work!
4 years, 5 months ago (2016-07-07 09:56:12 UTC) #5
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/2121253002/80001
4 years, 5 months ago (2016-07-07 14:29:18 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-07 16:23:54 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 16:24:02 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/0d2a71a993405545d9a735e5a8d5807815ee24c2 Cr-Commit-Position: refs/heads/master@{#404158}
4 years, 5 months ago (2016-07-07 16:25:22 UTC) #12
Mathieu
A revert of this CL (patchset #3 id:80001) has been created in https://codereview.chromium.org/2125383002/ by mathp@chromium.org. ...
4 years, 5 months ago (2016-07-07 19:47:24 UTC) #13
Roger McFarlane (Chromium)
4 years, 5 months ago (2016-07-08 14:36:17 UTC) #14
Message was sent while issue was closed.
Moved to https://codereview.chromium.org/2137533002

Powered by Google App Engine
This is Rietveld 408576698