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

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

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added assert true to test Created 7 years, 5 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
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..91704d3838c94737df17883a43bf963704e7ed51 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service.cc
@@ -942,10 +942,10 @@ const TabRestoreService::Entries& PersistentTabRestoreService::entries() const {
return helper_.entries();
}
-void PersistentTabRestoreService::RestoreMostRecentEntry(
+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 +953,12 @@ TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
return helper_.RemoveTabEntryById(id);
}
-void PersistentTabRestoreService::RestoreEntryById(
+content::WebContents* PersistentTabRestoreService::RestoreEntryById(
TabRestoreServiceDelegate* delegate,
SessionID::id_type id,
chrome::HostDesktopType host_desktop_type,
WindowOpenDisposition disposition) {
- helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
+ return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
}
bool PersistentTabRestoreService::IsLoaded() const {

Powered by Google App Engine
This is Rietveld 408576698