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

Unified Diff: chrome/browser/sessions/session_restore.h

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/session_restore.h
diff --git a/chrome/browser/sessions/session_restore.h b/chrome/browser/sessions/session_restore.h
index cda431a8807c2adb0fe2551eb65182ed8fd1e0f5..4405c4b44d54fe1387c5439de5bfc04c8f4bfd3b 100644
--- a/chrome/browser/sessions/session_restore.h
+++ b/chrome/browser/sessions/session_restore.h
@@ -52,10 +52,11 @@ class SessionRestore {
uint32 behavior,
const std::vector<GURL>& urls_to_open);
- // Specifically used in the restoration of a foreign session. This method
+ // Specifically used in the restoration of a foreign session. This function
// restores the given session windows to multiple browsers all of which
- // will be created on the desktop specified by |host_desktop_type|.
- static void RestoreForeignSessionWindows(
+ // will be created on the desktop specified by |host_desktop_type|. Returns
+ // the created Browsers.
+ static std::vector<Browser*> RestoreForeignSessionWindows(
Profile* profile,
chrome::HostDesktopType host_desktop_type,
std::vector<const SessionWindow*>::const_iterator begin,
@@ -63,8 +64,9 @@ class SessionRestore {
// Specifically used in the restoration of a foreign session. This method
// restores the given session tab to the browser of |source_web_contents| if
- // the disposition is not NEW_WINDOW.
- static void RestoreForeignSessionTab(
+ // the disposition is not NEW_WINDOW. Returns the WebContents corresponding
+ // to the restored tab.
+ static content::WebContents* RestoreForeignSessionTab(
content::WebContents* source_web_contents,
const SessionTab& tab,
WindowOpenDisposition disposition);
« no previous file with comments | « chrome/browser/sessions/persistent_tab_restore_service.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698