Refactoring of SessionService into a component part 3.
commitc3aa8cf571c5d0ed92725a15d0cd2c54f7da3b05
authorskuhne <skuhne@chromium.org>
Thu, 30 Oct 2014 06:02:45 +0000 (29 23:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Oct 2014 06:03:01 +0000 (30 06:03 +0000)
tree44624893cb20bd270d13c7d425f496d2d3ca4886
parent0ea0ff0e5bce892f92e89ec9e29c259a0ca3159e
Refactoring of SessionService into a component part 3.

This CL breaks out the command handling (command creation and session information restore) from |SessionService| into |SessionServiceCommands|, which does have no dependencies on Browser or Content.

Furthermore it breaks out the command handling from |BaseSessionService| into |BaseSessionServiceCommands|. This way the |PersistentTabRestoreService| and the |SessionService| can keep using the base command set which is used by both users.

BUG=424679
TEST=covered by existing tests

Review URL: https://codereview.chromium.org/672083002

Cr-Commit-Position: refs/heads/master@{#302041}
23 files changed:
chrome/browser/extensions/api/sessions/sessions_api.cc
chrome/browser/sessions/base_session_service.cc
chrome/browser/sessions/base_session_service.h
chrome/browser/sessions/base_session_service_commands.cc [new file with mode: 0644]
chrome/browser/sessions/base_session_service_commands.h [new file with mode: 0644]
chrome/browser/sessions/persistent_tab_restore_service.cc
chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
chrome/browser/sessions/session_restore.cc
chrome/browser/sessions/session_service.cc
chrome/browser/sessions/session_service.h
chrome/browser/sessions/session_service_commands.cc [new file with mode: 0644]
chrome/browser/sessions/session_service_commands.h [new file with mode: 0644]
chrome/browser/sessions/session_service_test_helper.cc
chrome/browser/sessions/session_service_unittest.cc
chrome/browser/sessions/session_service_utils.cc [new file with mode: 0644]
chrome/browser/sessions/session_service_utils.h [new file with mode: 0644]
chrome/browser/sessions/session_types.cc
chrome/browser/sessions/session_types.h
chrome/browser/sync/glue/session_sync_test_helper.cc
chrome/browser/sync/sessions/sessions_sync_manager.cc
chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc
chrome/chrome_browser.gypi