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

Issue 2164143002: Use the max use count on autofill profile merge. (Closed)

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

Description

Use the max use count on autofill profile merge. This CL retains the maximum autofill profile use-count, instead of summing the use-counts, when merging two profiles. The previous behaviour, summing, inflates the use-count during profile deduplication, double counts on profile usage, and falsely counts a fully-typed submission as a reuse of any profile it matched. All of these skew the frecency score of the resulting merged profile. BUG=629978 R=mathp@chromium.org, sebsg@chromium.org Committed: https://crrev.com/aea4be33481181302f394083e1e046d1ea65bbee Cr-Commit-Position: refs/heads/master@{#407156}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : better documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -38 lines) Patch
M components/autofill/core/browser/autofill_profile.cc View 1 2 2 chunks +21 lines, -12 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 4 chunks +9 lines, -11 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc View 5 chunks +10 lines, -7 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_autofill_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
Roger McFarlane (Chromium)
Please take a look.
4 years, 5 months ago (2016-07-21 19:10:42 UTC) #8
Mathieu
lgtm, thanks for looking at this. https://codereview.chromium.org/2164143002/diff/20001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/2164143002/diff/20001/components/autofill/core/browser/autofill_profile.cc#newcode467 components/autofill/core/browser/autofill_profile.cc:467: set_use_count(std::max(profile.use_count(), use_count())); Let's ...
4 years, 5 months ago (2016-07-21 19:16:01 UTC) #9
sebsg
LGTM, thanks!
4 years, 5 months ago (2016-07-21 19:20:15 UTC) #10
Nicolas Zea
sync LGTM
4 years, 5 months ago (2016-07-21 19:25:32 UTC) #11
Roger McFarlane (Chromium)
Thanks. Improved the comments and CL description. https://codereview.chromium.org/2164143002/diff/20001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/2164143002/diff/20001/components/autofill/core/browser/autofill_profile.cc#newcode467 components/autofill/core/browser/autofill_profile.cc:467: set_use_count(std::max(profile.use_count(), use_count())); ...
4 years, 5 months ago (2016-07-22 01:15:25 UTC) #17
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/2164143002/40001
4 years, 5 months ago (2016-07-22 14:41:43 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 14:45:29 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 14:47:13 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/aea4be33481181302f394083e1e046d1ea65bbee
Cr-Commit-Position: refs/heads/master@{#407156}

Powered by Google App Engine
This is Rietveld 408576698