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

Issue 2546163003: [Sync] Convert SyncSessions to NonUIDataTypeController and remove UIDataTypeController (Closed)

Created:
4 years ago by pavely
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] Convert SyncSessions to NonUIDataTypeController and remove UIDataTypeController In this change I: - Switched SessionDataTypeController to NonUIDataTypeController - Refactored SessionsSyncManager to only dereference local_device_ in MergeDataAndStartSyncing. This ensures that clearing local_device_ either doesn't affect SessionsSyncManager or gets properly reproted. - Since local event notifications can come between PSS::ShutdownImpl and StopSyncing, MergeDataAndStartSyncing can fail because local_device_ was cleared. I changed RebuildAssociations to recognize this and not to fail DCHECK in OnLocalTabModified. BUG=647505 R=maxbogue@chromium.org Committed: https://crrev.com/d8529e23dd0a239bf2132178e0c7dc53b9010e58 Cr-Commit-Position: refs/heads/master@{#436394}

Patch Set 1 #

Patch Set 2 : Fix SyncSessionsMetricsTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -739 lines) Patch
M components/sync/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D components/sync/driver/ui_data_type_controller.h View 1 chunk +0 lines, -127 lines 0 comments Download
D components/sync/driver/ui_data_type_controller.cc View 1 chunk +0 lines, -362 lines 0 comments Download
D components/sync/driver/ui_data_type_controller_unittest.cc View 1 chunk +0 lines, -212 lines 0 comments Download
M components/sync_sessions/session_data_type_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync_sessions/session_data_type_controller.cc View 2 chunks +6 lines, -1 line 0 comments Download
M components/sync_sessions/sessions_sync_manager.h View 3 chunks +6 lines, -4 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 1 10 chunks +25 lines, -27 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
pavely
4 years ago (2016-12-02 22:46:24 UTC) #7
maxbogue
lgtm
4 years ago (2016-12-05 18:47:20 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/2546163003/20001
4 years ago (2016-12-05 19:14:28 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-05 20:43:51 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-05 20:47:21 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d8529e23dd0a239bf2132178e0c7dc53b9010e58
Cr-Commit-Position: refs/heads/master@{#436394}

Powered by Google App Engine
This is Rietveld 408576698