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

Issue 1989173005: [Autofill] Dedupe similar profiles on insertion. (Closed)

Created:
4 years, 7 months ago by sebsg
Modified:
4 years, 6 months ago
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

On profile insertion, goes through all the user's profiles and try to merge. Delete all original profiles that were used in the merge, keeping only the result of the merge(s). BUG=618356 TEST=PersonalDataManagerTest Committed: https://crrev.com/c7fc72c36d74dd40a71d076c45558daabc7c825c Cr-Commit-Position: refs/heads/master@{#399495}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments #

Total comments: 16

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -22 lines) Patch
M components/autofill/core/browser/autofill_profile.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 1 2 3 chunks +34 lines, -5 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 chunks +47 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 1 chunk +244 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 1 chunk +13 lines, -8 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
sebsg
Hi Math and Roger, could you please take a look? Thanks.
4 years, 6 months ago (2016-06-08 17:23:57 UTC) #7
Mathieu
Exciting times https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc#newcode440 components/autofill/core/browser/autofill_profile.cc:440: return base::UTF8ToUTF16(base::JoinString(primary_values, " ")); can't you use ...
4 years, 6 months ago (2016-06-08 18:32:24 UTC) #8
Roger McFarlane (Chromium)
https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc#newcode439 components/autofill/core/browser/autofill_profile.cc:439: base::UTF16ToUTF8(GetRawInfo(ADDRESS_HOME_CITY))}; GetInfo() instead of GetRawInfo()? https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/personal_data_manager.h File components/autofill/core/browser/personal_data_manager.h (right): ...
4 years, 6 months ago (2016-06-08 18:55:38 UTC) #9
sebsg
Thanks for the comments, could you please take another look? https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/60001/components/autofill/core/browser/autofill_profile.cc#newcode439 ...
4 years, 6 months ago (2016-06-08 21:58:46 UTC) #11
Roger McFarlane (Chromium)
https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/autofill_profile.cc#newcode441 components/autofill/core/browser/autofill_profile.cc:441: return base::JoinString(primary_values, base::UTF8ToUTF16(" ")); Note that JoinString isn't smart ...
4 years, 6 months ago (2016-06-09 20:37:36 UTC) #12
Mathieu
lgtm Sorry for the delay https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/personal_data_manager.cc#newcode1546 components/autofill/core/browser/personal_data_manager.cc:1546: existing_profile->PrimaryValue(app_locale_)) == if you ...
4 years, 6 months ago (2016-06-09 20:39:28 UTC) #13
sebsg
Another look? Thanks https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/100001/components/autofill/core/browser/autofill_profile.cc#newcode441 components/autofill/core/browser/autofill_profile.cc:441: return base::JoinString(primary_values, base::UTF8ToUTF16(" ")); On 2016/06/09 ...
4 years, 6 months ago (2016-06-12 21:41:25 UTC) #16
Roger McFarlane (Chromium)
Unit test failures in try bots? https://codereview.chromium.org/1989173005/diff/160001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/160001/components/autofill/core/browser/autofill_profile.cc#newcode443 components/autofill/core/browser/autofill_profile.cc:443: return base::JoinString(primary_values, base::UTF8ToUTF16(" ...
4 years, 6 months ago (2016-06-13 15:12:52 UTC) #17
sebsg
Thanks, another look? https://codereview.chromium.org/1989173005/diff/160001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1989173005/diff/160001/components/autofill/core/browser/autofill_profile.cc#newcode443 components/autofill/core/browser/autofill_profile.cc:443: return base::JoinString(primary_values, base::UTF8ToUTF16(" ")); On 2016/06/13 ...
4 years, 6 months ago (2016-06-13 17:57:59 UTC) #18
Roger McFarlane (Chromium)
lgtm
4 years, 6 months ago (2016-06-13 18:38:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989173005/180001
4 years, 6 months ago (2016-06-13 18:47:07 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:180001)
4 years, 6 months ago (2016-06-13 18:52:57 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 18:52:59 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 18:54:23 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c7fc72c36d74dd40a71d076c45558daabc7c825c
Cr-Commit-Position: refs/heads/master@{#399495}

Powered by Google App Engine
This is Rietveld 408576698