|
[Sync] Add logic to reassociate tab nodes after restart.
Change SessionModelAssociator and TabNodePool to reuse old tab nodes.
Old tab nodes are now added to TabNodePool and if there is an
existing old tab node with syncid of tab, the tab is reassociated
with that node.
Note: In order for tab reassociation to work, the syncid of a tab
should be persisted. This CL just introduces the sync changes for
reassociating tab nodes. Persisting syncid with tab will be done
in a separate CL for Desktop, and in a downstream CL for Android.
BUG= 139670, 12549, 139666
TEST=Includes unit tests + MANUAL testing on Android.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208024
Total comments: 34
Total comments: 44
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+512 lines, -186 lines) |
Patch |
 |
M |
chrome/android/testshell/testshell_tab.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/testshell/testshell_tab.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_android.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator.cc
|
View
|
1
2
3
4
5
6
|
12 chunks |
+90 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate_android.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate_android.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/tab_node_pool.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+68 lines, -45 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/tab_node_pool.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+99 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/tab_node_pool_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+181 lines, -62 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_session_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+27 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|