|
[Sync] Refactor handling of session tabs
Add SessionTab <-> sync_pb::SessionTab conversion functions.
Add IsPinned() method to SyncedTabDelegate and fix latent NULL-dereference bug in the process. Remove HasExtensionAppId() also.
Rework tab contents association to:
- update a SessionTab from the tab delegate (UpdateSessionTabFromDelegate);
- get the current virtual URL for the tab (GetCurrentVirtualURL);
- and convert to sync_pb::SessionTab
in separate phases.
Rework the SessionModelAssociator tests.
BUG= 128449
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158777
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+440 lines, -351 lines) |
Patch |
 |
M |
chrome/browser/sessions/session_types.h
|
View
|
|
4 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_types.cc
|
View
|
|
4 chunks |
+50 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_types_test_helper.h
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_types_test_helper.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_types_unittest.cc
|
View
|
|
2 chunks |
+91 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator.h
|
View
|
|
5 chunks |
+16 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator.cc
|
View
|
1
2
3
|
8 chunks |
+78 lines, -101 lines |
3 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_model_associator_unittest.cc
|
View
|
1
2
3
|
16 chunks |
+159 lines, -200 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
|
View
|
1
2
|
3 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|