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

Unified Diff: chrome/browser/sessions/persistent_tab_restore_service.cc

Issue 21656002: Return webcontents and add in test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/persistent_tab_restore_service.h ('k') | chrome/browser/sessions/session_restore.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/persistent_tab_restore_service.cc
diff --git a/chrome/browser/sessions/persistent_tab_restore_service.cc b/chrome/browser/sessions/persistent_tab_restore_service.cc
index d02f25ad807e0341d51aa0445374c5504bfa828d..0aa9c3c03bad8809137a64184b657e1d584ecd9f 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service.cc
@@ -942,10 +942,11 @@ const TabRestoreService::Entries& PersistentTabRestoreService::entries() const {
return helper_.entries();
}
-void PersistentTabRestoreService::RestoreMostRecentEntry(
+std::vector<content::WebContents*>
+PersistentTabRestoreService::RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
chrome::HostDesktopType host_desktop_type) {
- helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
+ return helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
}
TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
@@ -953,12 +954,13 @@ TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
return helper_.RemoveTabEntryById(id);
}
-void PersistentTabRestoreService::RestoreEntryById(
- TabRestoreServiceDelegate* delegate,
- SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition) {
- helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
+std::vector<content::WebContents*>
+ PersistentTabRestoreService::RestoreEntryById(
+ TabRestoreServiceDelegate* delegate,
+ SessionID::id_type id,
+ chrome::HostDesktopType host_desktop_type,
+ WindowOpenDisposition disposition) {
+ return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
}
bool PersistentTabRestoreService::IsLoaded() const {
« no previous file with comments | « chrome/browser/sessions/persistent_tab_restore_service.h ('k') | chrome/browser/sessions/session_restore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698