|
Introduce TabRestoreServiceClient and //chrome implementation.
Core tab restore code from //chrome/browser/sessions is targeted for
componentization in order to cleanly integrate with iOS. To achieve this goal,
the code needs to be cleaned of //content and //chrome dependencies. This CL
introduces the TabRestoreServiceClient interface, which is an abstraction of
Profile for usage within the core tab restore code. It also adds initial usage
of this interface to eliminate knowledge of //chrome-level factories and the
//chrome-level SessionService from PersistentTabRestoreService. Finally, it
moves the //chrome-level static functions for creating a TabRestoreService out
of the classes to be componentized and into TabRestoreServiceFactory.
BUG= 528883
Committed: https://crrev.com/56789fe3d6f16eb33bb949ef697baed8c5458df0
Cr-Commit-Position: refs/heads/master@{#348099}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+230 lines, -71 lines) |
Patch |
|
A |
chrome/browser/sessions/chrome_tab_restore_service_client.h
|
View
|
1
2
3
4
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/sessions/chrome_tab_restore_service_client.cc
|
View
|
1
2
3
4
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/in_memory_tab_restore_service.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/persistent_tab_restore_service.h
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/persistent_tab_restore_service.cc
|
View
|
1
2
3
4
|
9 chunks |
+24 lines, -36 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
|
View
|
1
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/session_service.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/session_service.cc
|
View
|
1
2
3
4
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/session_service_utils.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/session_service_utils.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/tab_restore_service_factory.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/sessions/tab_restore_service_factory.cc
|
View
|
1
2
3
4
|
2 chunks |
+20 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/sessions.gypi
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/sessions/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/sessions/core/session_constants.h
|
View
|
1
2
3
4
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/sessions/core/session_constants.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
A |
components/sessions/core/tab_restore_service_client.h
|
View
|
1
2
3
4
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 11 (2 generated)
|