4 years, 6 months ago
(2016-06-20 00:24:00 UTC)
#1
Patchset #4 (id:60001) has been deleted
sebsg
Patchset #3 (id:40001) has been deleted
4 years, 6 months ago
(2016-06-20 00:24:14 UTC)
#2
Patchset #3 (id:40001) has been deleted
sebsg
Patchset #2 (id:20001) has been deleted
4 years, 6 months ago
(2016-06-20 00:24:20 UTC)
#3
Patchset #2 (id:20001) has been deleted
sebsg
Patchset #1 (id:1) has been deleted
4 years, 6 months ago
(2016-06-20 00:24:27 UTC)
#4
Patchset #1 (id:1) has been deleted
sebsg
Description was changed from ========== [Autofill] Dedupe profiles on major version (WIP). BUG=620422 ========== to ...
4 years, 6 months ago
(2016-06-20 00:25:29 UTC)
#5
Description was changed from
==========
[Autofill] Dedupe profiles on major version (WIP).
BUG=620422
==========
to
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
==========
4 years, 6 months ago
(2016-06-20 01:46:15 UTC)
#7
Hi! could you please take a look? Thanks!
Mathieu
looks great! Lovely tests. Roger can you have a look? https://codereview.chromium.org/2074253002/diff/120001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/120001/components/autofill/core/browser/personal_data_manager.cc#newcode329 ...
4 years, 6 months ago
(2016-06-20 12:10:08 UTC)
#8
Thanks for the comments, could you take another look? Thanks! https://codereview.chromium.org/2074253002/diff/120001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/120001/components/autofill/core/browser/personal_data_manager.cc#newcode329 ...
4 years, 6 months ago
(2016-06-20 14:57:18 UTC)
#9
Thanks lgtm https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc#newcode1586 components/autofill/core/browser/personal_data_manager.cc:1586: if (!(pref_service_->GetInteger(prefs::kAutofillLastVersionDeduped) < I think I would ...
4 years, 6 months ago
(2016-06-20 15:48:54 UTC)
#10
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc#newcode1585 components/autofill/core/browser/personal_data_manager.cc:1585: // Check if the deduping routine was run on ...
4 years, 6 months ago
(2016-06-20 18:40:04 UTC)
#11
Thanks for the comments. Another look? https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc#newcode1585 components/autofill/core/browser/personal_data_manager.cc:1585: // Check if ...
4 years, 6 months ago
(2016-06-20 19:12:20 UTC)
#12
Thanks for the comments. Another look?
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
File components/autofill/core/browser/personal_data_manager.cc (right):
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1585: // Check if the
deduping routine was run on this major version.
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> nit:
>
> ...was already run...
>
> or, better yet,
>
> ...has already been run...
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1586: if
(!(pref_service_->GetInteger(prefs::kAutofillLastVersionDeduped) <
On 2016/06/20 15:48:54, Mathieu Perreault wrote:
> I think I would prefer >=, it's cleaner.
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1591:
std::set<std::string> profile_guids_to_delete;
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> micro-optimizations:
>
> * Why reference the profiles by guid? Why not a set of pointers?
> * std::unordered_set
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1596:
pref_service_->SetInteger(prefs::kAutofillLastVersionDeduped,
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> unless there is no possibility of failure beyond this point, do this at the
end,
> right before the refresh.
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1618:
std::set<std::string>* profile_guids_to_delete) {
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> unordered_set, reserved existing_profiles.size()
>
> ?
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1635:
AutofillMetrics::LogNumberOfProfilesConsideredForDedupe(
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> move the log to the beginning... since it's not a part of the actual dedup
algo.
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1652: if (i + 1 <
existing_profiles->size()) {
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> this is redundant with the bounds in the enclosed for
Done.
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1680: if
(profile_to_merge->IsVerified())
On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> this check seems too late.
>
> I think you need to check if existing_profile->IsVerified before trying to
save
> additional info into it, no?
>
The |existing_profile| can (and should sometimes) be verified. If that's the
case, SaveAdditionnalInfo will not call OverwriteWith. So the verified profile
will not be changed but the similar |profile_to_merge| will be deleted. However,
|profile_to_merge| should never be verified, because verified profiles do not
merge into other profiles.
When entering the inner loop at line 1655 we are sure that |profile_to_merge| is
not verified. The only moment where it can become verified is right after the
assignation at line 1676. That's why that condition is there.
Roger McFarlane (Chromium)
lgtm https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2074253002/diff/140001/components/autofill/core/browser/personal_data_manager.cc#newcode1680 components/autofill/core/browser/personal_data_manager.cc:1680: if (profile_to_merge->IsVerified()) On 2016/06/20 19:12:19, sebsg wrote: > ...
4 years, 6 months ago
(2016-06-20 19:18:37 UTC)
#13
lgtm
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
File components/autofill/core/browser/personal_data_manager.cc (right):
https://codereview.chromium.org/2074253002/diff/140001/components/autofill/co...
components/autofill/core/browser/personal_data_manager.cc:1680: if
(profile_to_merge->IsVerified())
On 2016/06/20 19:12:19, sebsg wrote:
> On 2016/06/20 18:40:04, Roger McFarlane (Chromium) wrote:
> > this check seems too late.
> >
> > I think you need to check if existing_profile->IsVerified before trying to
> save
> > additional info into it, no?
> >
> The |existing_profile| can (and should sometimes) be verified. If that's the
> case, SaveAdditionnalInfo will not call OverwriteWith. So the verified profile
> will not be changed but the similar |profile_to_merge| will be deleted.
However,
> |profile_to_merge| should never be verified, because verified profiles do not
> merge into other profiles.
>
> When entering the inner loop at line 1655 we are sure that |profile_to_merge|
is
> not verified. The only moment where it can become verified is right after the
> assignation at line 1676. That's why that condition is there.
Acknowledged.
sebsg
The CQ bit was checked by sebsg@chromium.org
4 years, 6 months ago
(2016-06-20 19:19:28 UTC)
#14
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/203487)
4 years, 6 months ago
(2016-06-20 19:29:37 UTC)
#18
Description was changed from ========== Add a profile deduping routine to run on each major ...
4 years, 6 months ago
(2016-06-20 19:35:41 UTC)
#19
Description was changed from
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
==========
to
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
TBR=thestig@chromium.org
For the DEPS file where I added components/version_info. Thanks!
==========
sebsg
The CQ bit was checked by sebsg@chromium.org
4 years, 6 months ago
(2016-06-20 19:35:52 UTC)
#20
Description was changed from ========== Add a profile deduping routine to run on each major ...
4 years, 6 months ago
(2016-06-20 20:46:45 UTC)
#22
Message was sent while issue was closed.
Description was changed from
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
TBR=thestig@chromium.org
For the DEPS file where I added components/version_info. Thanks!
==========
to
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
TBR=thestig@chromium.org
For the DEPS file where I added components/version_info. Thanks!
==========
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 6 months ago
(2016-06-20 20:46:49 UTC)
#23
Message was sent while issue was closed.
Committed patchset #5 (id:160001)
commit-bot: I haz the power
Description was changed from ========== Add a profile deduping routine to run on each major ...
4 years, 6 months ago
(2016-06-20 20:48:55 UTC)
#24
Message was sent while issue was closed.
Description was changed from
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
TBR=thestig@chromium.org
For the DEPS file where I added components/version_info. Thanks!
==========
to
==========
Add a profile deduping routine to run on each major version.
BUG=620422
TEST=PersonalDataManagerTest
TBR=thestig@chromium.org
For the DEPS file where I added components/version_info. Thanks!
Committed: https://crrev.com/75b5126356c52587b9f3a8d8c5554529528c021e
Cr-Commit-Position: refs/heads/master@{#400773}
==========
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/75b5126356c52587b9f3a8d8c5554529528c021e Cr-Commit-Position: refs/heads/master@{#400773}
4 years, 6 months ago
(2016-06-20 20:48:56 UTC)
#25
Issue 2074253002: [Autofill] Dedupe profiles on each major version.
(Closed)
Created 4 years, 6 months ago by sebsg
Modified 4 years, 6 months ago
Reviewers: Mathieu, Roger McFarlane (Chromium)
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 39