Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 1319473014: Introduce TabRestoreServiceClient and //chrome implementation. (Closed)

Created:
5 years, 3 months ago by blundell
Modified:
5 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Build fix on Android #

Patch Set 4 : Build fixes #

Total comments: 8

Patch Set 5 : Response to review #

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:

Messages

Total messages: 11 (2 generated)
blundell
5 years, 3 months ago (2015-09-08 15:11:51 UTC) #2
blundell
BTW, after introducing LiveTab (or whatever better name we settle on), my plan is to ...
5 years, 3 months ago (2015-09-08 18:25:48 UTC) #3
sky
https://codereview.chromium.org/1319473014/diff/60001/chrome/browser/sessions/persistent_tab_restore_service.cc File chrome/browser/sessions/persistent_tab_restore_service.cc (right): https://codereview.chromium.org/1319473014/diff/60001/chrome/browser/sessions/persistent_tab_restore_service.cc#newcode120 chrome/browser/sessions/persistent_tab_restore_service.cc:120: explicit Delegate(Profile* profile, nit: remove explicit. https://codereview.chromium.org/1319473014/diff/60001/chrome/browser/sessions/tab_restore_service_factory.cc File chrome/browser/sessions/tab_restore_service_factory.cc ...
5 years, 3 months ago (2015-09-08 23:44:59 UTC) #4
blundell
https://codereview.chromium.org/1319473014/diff/60001/chrome/browser/sessions/persistent_tab_restore_service.cc File chrome/browser/sessions/persistent_tab_restore_service.cc (right): https://codereview.chromium.org/1319473014/diff/60001/chrome/browser/sessions/persistent_tab_restore_service.cc#newcode120 chrome/browser/sessions/persistent_tab_restore_service.cc:120: explicit Delegate(Profile* profile, On 2015/09/08 23:44:59, sky wrote: > ...
5 years, 3 months ago (2015-09-09 10:27:10 UTC) #5
sky
LGTM
5 years, 3 months ago (2015-09-09 14:58:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319473014/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319473014/80001
5 years, 3 months ago (2015-09-10 05:06:34 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-10 05:11:24 UTC) #9
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/56789fe3d6f16eb33bb949ef697baed8c5458df0 Cr-Commit-Position: refs/heads/master@{#348099}
5 years, 3 months ago (2015-09-10 05:12:18 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:07:40 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/56789fe3d6f16eb33bb949ef697baed8c5458df0
Cr-Commit-Position: refs/heads/master@{#348099}

Powered by Google App Engine
This is Rietveld 408576698