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

Unified Diff: chrome/browser/sessions/in_memory_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
Index: chrome/browser/sessions/in_memory_tab_restore_service.cc
diff --git a/chrome/browser/sessions/in_memory_tab_restore_service.cc b/chrome/browser/sessions/in_memory_tab_restore_service.cc
index f44b7a778ecd47758cd233da5da0300834c86be2..98a089580d09fd101b58398f57ec8b30e60b1df9 100644
--- a/chrome/browser/sessions/in_memory_tab_restore_service.cc
+++ b/chrome/browser/sessions/in_memory_tab_restore_service.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/sessions/in_memory_tab_restore_service.h"
+#include <vector>
+
#include "base/compiler_specific.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/tab_restore_service_factory.h"
@@ -50,10 +52,11 @@ const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const {
return helper_.entries();
}
-void InMemoryTabRestoreService::RestoreMostRecentEntry(
+std::vector<content::WebContents*>
+InMemoryTabRestoreService::RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
chrome::HostDesktopType host_desktop_type) {
- helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
+ return helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
}
TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById(
@@ -61,12 +64,12 @@ TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById(
return helper_.RemoveTabEntryById(id);
}
-void InMemoryTabRestoreService::RestoreEntryById(
+std::vector<content::WebContents*> InMemoryTabRestoreService::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);
}
void InMemoryTabRestoreService::LoadTabsFromLastSession() {
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.h ('k') | chrome/browser/sessions/persistent_tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698