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

Issue 2077003002: [Autofill] Fix profiles with bad |use_date| values. (Closed)

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

Fix profiles with bad |use_date| values. A recent CL set the use date of new profiles to Now(). However, profiles that were created before and have not been used since still have the default value. Adds a routine to set the use date of profiles for which it is set to the default value to two weeks before Now(). That routine will be run once per major version. BUG=619587 TEST=PersonalDataManagerTest Committed: https://crrev.com/e9ba60d7808bcdc37d8e6c69d036841a683b9e3e Cr-Commit-Position: refs/heads/master@{#400526}

Patch Set 1 #

Total comments: 2

Patch Set 2 : updated test #

Patch Set 3 : rebase #

Patch Set 4 : clean #

Patch Set 5 : 1line fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -3 lines) Patch
M components/autofill/core/browser/autofill_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 3 chunks +106 lines, -3 lines 0 comments Download
M components/autofill/core/common/autofill_pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/autofill_pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Mathieu
Hi Seb, PTAL
4 years, 6 months ago (2016-06-17 17:24:22 UTC) #2
sebsg
LGTM % testing the pref (see comment). Thanks! https://codereview.chromium.org/2077003002/diff/1/components/autofill/core/browser/personal_data_manager_unittest.cc File components/autofill/core/browser/personal_data_manager_unittest.cc (right): https://codereview.chromium.org/2077003002/diff/1/components/autofill/core/browser/personal_data_manager_unittest.cc#newcode4731 components/autofill/core/browser/personal_data_manager_unittest.cc:4731: saved_profiles[1]->use_date()); ...
4 years, 6 months ago (2016-06-17 17:33:05 UTC) #3
Mathieu
https://codereview.chromium.org/2077003002/diff/1/components/autofill/core/browser/personal_data_manager_unittest.cc File components/autofill/core/browser/personal_data_manager_unittest.cc (right): https://codereview.chromium.org/2077003002/diff/1/components/autofill/core/browser/personal_data_manager_unittest.cc#newcode4731 components/autofill/core/browser/personal_data_manager_unittest.cc:4731: saved_profiles[1]->use_date()); On 2016/06/17 at 17:33:05, sebsg wrote: > Could ...
4 years, 6 months ago (2016-06-17 17:45:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2077003002/20001
4 years, 6 months ago (2016-06-17 17:45:32 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/231426)
4 years, 6 months ago (2016-06-17 18:41:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2077003002/80001
4 years, 6 months ago (2016-06-17 21:42:14 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-17 22:27:01 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 22:29:05 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e9ba60d7808bcdc37d8e6c69d036841a683b9e3e
Cr-Commit-Position: refs/heads/master@{#400526}

Powered by Google App Engine
This is Rietveld 408576698