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

Issue 1891903002: [Autofill] Set basic information when adding a new profiles and credit cards. (Closed)

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

Description

Set the use count to one and the use date and modification date to "now". Changed AutofillProfileSyncableService::MergeProfile to MergeSimilarProfiles. It now compared the merge_into before and after the merge to determine if the merge had any effect. It fixes bug 248440. Also changed AutofillProfile::PrimaryValue(). Its comment said it included the name but it did not. The name was added because a profile otherwise two people living at the same address could have the profile overwrite one another instead of creating two distinct profiles. BUG=603640, 248440 TEST=PersonalDataManagerTest, AutofillProfileSyncableServiceTest, ProfileSyncServiceAutofillTest Committed: https://crrev.com/43391bda1708665a069ca796e59c60b15720b37c Cr-Commit-Position: refs/heads/master@{#389545}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed sync merge return value #

Total comments: 2

Patch Set 3 : Nit #

Patch Set 4 : Further changes to the sync logic #

Total comments: 40

Patch Set 5 : Addressed comments #

Total comments: 4

Patch Set 6 : Rebase #

Patch Set 7 : Fixed test that was added in rebase and removed unnecessary test. #

Messages

Total messages: 38 (22 generated)
sebsg
Could you please take a look? Thanks!
4 years, 8 months ago (2016-04-18 14:34:19 UTC) #7
Mathieu
Thanks Seb, some questions about tests https://codereview.chromium.org/1891903002/diff/80001/components/autofill/core/browser/autofill_manager_unittest.cc File components/autofill/core/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/1891903002/diff/80001/components/autofill/core/browser/autofill_manager_unittest.cc#newcode4585 components/autofill/core/browser/autofill_manager_unittest.cc:4585: personal_data_.ClearAutofillProfiles(); unclear why ...
4 years, 8 months ago (2016-04-19 14:29:35 UTC) #8
sebsg
Could you take another look? Thanks! https://codereview.chromium.org/1891903002/diff/80001/components/autofill/core/browser/autofill_manager_unittest.cc File components/autofill/core/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/1891903002/diff/80001/components/autofill/core/browser/autofill_manager_unittest.cc#newcode4585 components/autofill/core/browser/autofill_manager_unittest.cc:4585: personal_data_.ClearAutofillProfiles(); On 2016/04/19 ...
4 years, 8 months ago (2016-04-20 20:25:46 UTC) #11
Mathieu
lgtm https://codereview.chromium.org/1891903002/diff/120001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc (right): https://codereview.chromium.org/1891903002/diff/120001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc#newcode1178 components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc:1178: // Local autofill profile has 0 for use_count/use_date. ...
4 years, 8 months ago (2016-04-20 20:48:40 UTC) #12
sebsg
zea@chromium.org: Could you please review the changes in components/browser_sync/browser/profile_sync_service_autofill_unittest.cc ? Thanks. https://codereview.chromium.org/1891903002/diff/120001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc (right): ...
4 years, 8 months ago (2016-04-20 21:15:33 UTC) #14
Nicolas Zea
QQ: will this trigger updating all autofill profile sync data on upgrade? Or will this ...
4 years, 8 months ago (2016-04-21 01:01:00 UTC) #15
sebsg
Hi, I made some further changes to the sync logic and modified the CL description ...
4 years, 8 months ago (2016-04-21 21:32:52 UTC) #18
Nicolas Zea
LGTM with some comment clarification nits https://codereview.chromium.org/1891903002/diff/180001/components/browser_sync/browser/profile_sync_service_autofill_unittest.cc File components/browser_sync/browser/profile_sync_service_autofill_unittest.cc (right): https://codereview.chromium.org/1891903002/diff/180001/components/browser_sync/browser/profile_sync_service_autofill_unittest.cc#newcode984 components/browser_sync/browser/profile_sync_service_autofill_unittest.cc:984: // deleted and ...
4 years, 8 months ago (2016-04-22 20:15:22 UTC) #19
Mathieu
Mostly comments and formatting changes, so that it's clear what's going on. Thanks https://codereview.chromium.org/1891903002/diff/180001/components/autofill/core/browser/autofill_profile.cc File ...
4 years, 8 months ago (2016-04-22 20:54:28 UTC) #20
Mathieu
Thanks, lgtm with a question https://codereview.chromium.org/1891903002/diff/260001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/1891903002/diff/260001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode157 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:157: << "Found similar profile ...
4 years, 8 months ago (2016-04-25 13:41:16 UTC) #24
sebsg
Thanks for the comments. https://codereview.chromium.org/1891903002/diff/180001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1891903002/diff/180001/components/autofill/core/browser/autofill_profile.cc#newcode419 components/autofill/core/browser/autofill_profile.cc:419: bool AutofillProfile::EqualsForSyncPurposes( On 2016/04/22 20:54:27, ...
4 years, 8 months ago (2016-04-25 15:35:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891903002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891903002/340001
4 years, 8 months ago (2016-04-25 16:47:41 UTC) #30
commit-bot: I haz the power
Failed to commit the patch.
4 years, 8 months ago (2016-04-25 17:43:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891903002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891903002/340001
4 years, 8 months ago (2016-04-25 19:45:40 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:340001)
4 years, 8 months ago (2016-04-25 19:50:24 UTC) #36
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 19:52:54 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/43391bda1708665a069ca796e59c60b15720b37c
Cr-Commit-Position: refs/heads/master@{#389545}

Powered by Google App Engine
This is Rietveld 408576698