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

Issue 2575773003: Revert "Reland of [Sync] Put session tracker in charge of maintaining local state." (Closed)

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

Description

Revert "Reland of [Sync] Put session tracker in charge of maintaining local state." Reason for revert: crashing on android, spike in datatype errors across platforms. See crbug.com/673618 Reland of [Sync] Put session tracker in charge of maintaining local state. Previously, the session tracker was only updated when local tabs were available in the TabModel. It was not updated with sync data from a previous session (and as a result, we had to pass around the restored_data list at association time in order to handle restoring placeholder tabs). The session tracker now gets updated at startup of previous local state, which is then used when reassociating restored tabs. This is a purely refactoring change that should not introduce user visible changes (although internally the data is managed in a different way). To make this happen, InitFromSyncModel now treats local tabs and remote tabs the same. In addition, the SyncedSessionTracker now has a ReassociateTab method that can be called to update the tab id of a SessionTab. To make this work, the TabNodePool has been moved into the SyncedSessionTracker, and in general data ownership has been simplified (with quite a few new tests added). This is all necessary in order to enable preserving tabs from a previous session when they're not present in the TabModel (which can happen on Android when a custom tab is opened, but the main tabbed activity is not loaded). BUG=639009, 673618 Committed: https://crrev.com/159246f269b561bf931fa56a35b2704fab7dcc96 Cr-Commit-Position: refs/heads/master@{#436786} TBR=skym@chromium.org Committed: https://crrev.com/0b91d7171d412f61c13d6e4aeb44ebbb26e9544b Cr-Commit-Position: refs/heads/master@{#438602}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1020 lines, -1187 lines) Patch
M chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc View 36 chunks +210 lines, -314 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.h View 7 chunks +61 lines, -6 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 29 chunks +199 lines, -187 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.h View 7 chunks +35 lines, -74 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.cc View 11 chunks +41 lines, -107 lines 0 comments Download
M components/sync_sessions/synced_session_tracker_unittest.cc View 11 chunks +143 lines, -271 lines 0 comments Download
M components/sync_sessions/tab_node_pool.h View 4 chunks +78 lines, -34 lines 0 comments Download
M components/sync_sessions/tab_node_pool.cc View 4 chunks +100 lines, -77 lines 0 comments Download
M components/sync_sessions/tab_node_pool_unittest.cc View 4 chunks +153 lines, -117 lines 0 comments Download

Messages

Total messages: 9 (6 generated)
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/2575773003/1
4 years ago (2016-12-14 18:18:58 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-14 20:00:29 UTC) #7
commit-bot: I haz the power
4 years ago (2016-12-14 20:02:13 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0b91d7171d412f61c13d6e4aeb44ebbb26e9544b
Cr-Commit-Position: refs/heads/master@{#438602}

Powered by Google App Engine
This is Rietveld 408576698