|
[Sync] Remove static methods on SyncedWindowDelegate.
Before, two static methods (GetAll and FindByID) were declared
on SyncedWindowDelegate but defined in platform specific files.
Now, those methods exist on SyncedWindowDelegatesGetter so
they can use polymorphism for platform specificity.
SyncedTabDelegate was the biggest challenge since it is not
really accessible when constructed to pass the getter in.
Instead, the SyncedWindowDelegatesGetter is set in
SyncedTabDelegate::ImplFromWebContents, before anything
else uses the object as a SyncedTabDelegate.
This CL is a prerequisite to componentizing SyncedWindowDelegate
and SyncedWindowDelegatesGetter.
BUG= 512472
Committed: https://crrev.com/a3b1e30c365c1a8c9ca659943349aedd603ef5f4
Cr-Commit-Position: refs/heads/master@{#347840}
Total comments: 26
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+265 lines, -130 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/synced_tab_delegate.h
|
View
|
1
2
3
4
|
3 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate_android.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate_android.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+27 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_tab_delegate_desktop.cc
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_window_delegate.h
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_window_delegate_android.cc
|
View
|
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/glue/synced_window_delegates_getter_android.h
|
View
|
1
2
3
4
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/glue/synced_window_delegates_getter_android.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/session_data_type_controller_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/sessions_sync_manager.h
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/sessions_sync_manager.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+19 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/synced_window_delegates_getter.h
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/synced_window_delegates_getter.cc
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/browser_synced_window_delegate.h
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/browser_synced_window_delegate.cc
|
View
|
|
2 chunks |
+0 lines, -36 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/sync/browser_synced_window_delegates_getter.h
|
View
|
1
2
3
4
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/sync/browser_synced_window_delegates_getter.cc
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 30 (11 generated)
|