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

Issue 2536043002: [Sync] Stop updating local device info time stamp on merge. (Closed)

Created:
4 years ago by skym
Modified:
4 years ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Stop updating local device info time stamp on merge. When merging, if we're given specifics that correspond to the local guid, we try to access specifics object for the local guid in |all_data_|. The problem with this, is that there isn't always an entry there if reconcile has not happened yet. This only happens when the initial sync round trip finishes before metadata loads from disk, but this race is happening to users, see the bug. The fix could be to check that |all_data_| actually contains an entry for the local guid, but it really doesn't matter. Local data completely cleared when sync is disabled, so reconcile will always create a local entry with a fresh time stamp around the time merge is called. There's no reason to complicate the logic inside of merge for no real benefit, so I've simply removed the set_last_updated_timestamp call. BUG=668938 Committed: https://crrev.com/459c7c57ffcae234ad209b63035e2f6fede1e975 Cr-Commit-Position: refs/heads/master@{#435011}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M components/sync/device_info/device_info_sync_bridge.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge_unittest.cc View 1 chunk +15 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (10 generated)
skym
PTAL
4 years ago (2016-11-29 00:48:29 UTC) #5
maxbogue
lgtm
4 years ago (2016-11-29 01:19:37 UTC) #6
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/2536043002/1
4 years ago (2016-11-29 16:32:25 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-29 16:36:39 UTC) #13
commit-bot: I haz the power
4 years ago (2016-11-29 16:40:24 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/459c7c57ffcae234ad209b63035e2f6fede1e975
Cr-Commit-Position: refs/heads/master@{#435011}

Powered by Google App Engine
This is Rietveld 408576698