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

Issue 2177253003: Apply autofill profile use-date fix after sync starts. (Closed)

Created:
4 years, 5 months ago by Roger McFarlane (Chromium)
Modified:
4 years, 4 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

Apply autofill profile use-date fix after sync starts. The use-date fix replaces invalid autofill profile last-use dates (prior to M53, the use-date at creation was set to 0). It is currently run when the autofill profile data is first loaded upon chrome start. This happens before sync, if enabled, has started. Unfortunately, when sync starts, it overwrites the fixed last-use dates for any profiles already represented in the sync data stream. This CL moves the invocation of... autofill::PersonalDataManager::ApplyProfileUseDatesFix() ... to be invoked either upon determining that sync is not enabled (and will therefore not clobber the fixes) or upon notification that sync has started (initial sync is complete, and sync is ready to accept and propagate our fixes). BUG=631141 R=mathp@chromium.org, sebsg@chromium.org, zea@chromium.org Committed: https://crrev.com/fde6213417d148d604e67d687ac8259cc60ea90d Cr-Commit-Position: refs/heads/master@{#407859}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M components/autofill/core/browser/personal_data_manager.cc View 3 chunks +14 lines, -4 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_autofill_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Roger McFarlane (Chromium)
Please take a look? Trigger the use-date fix (one-shot) post start-of-sync if sync is enabled.
4 years, 5 months ago (2016-07-25 19:28:03 UTC) #2
Mathieu
lgtm thanks
4 years, 5 months ago (2016-07-25 19:35:37 UTC) #5
Roger McFarlane (Chromium)
On 2016/07/25 19:35:37, Mathieu Perreault wrote: > lgtm thanks Thanks! zea@... ping?
4 years, 4 months ago (2016-07-26 15:45:28 UTC) #8
Nicolas Zea
sync lgtm
4 years, 4 months ago (2016-07-26 18:30:14 UTC) #10
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/2177253003/1
4 years, 4 months ago (2016-07-26 18:32:10 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-26 18:37:50 UTC) #14
sebsg
Forgot to hit send: LGTM!
4 years, 4 months ago (2016-07-26 18:38:16 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 18:40:26 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fde6213417d148d604e67d687ac8259cc60ea90d
Cr-Commit-Position: refs/heads/master@{#407859}

Powered by Google App Engine
This is Rietveld 408576698