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

Unified Diff: chrome/browser/ui/browser_tabrestore.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
« no previous file with comments | « chrome/browser/ui/browser_tab_restore_service_delegate.cc ('k') | chrome/browser/ui/browser_tabrestore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_tabrestore.h
diff --git a/chrome/browser/ui/browser_tabrestore.h b/chrome/browser/ui/browser_tabrestore.h
index 5081c1336f30ebbe5bd05832041183d69e597ebf..52806968ea9df1bd643466a95b3b2e874641d802 100644
--- a/chrome/browser/ui/browser_tabrestore.h
+++ b/chrome/browser/ui/browser_tabrestore.h
@@ -31,7 +31,8 @@ namespace chrome {
// the newly created tab is pinned. If |from_last_session| is true,
// |navigations| are from the previous session. |user_agent_override| contains
// the string being used as the user agent for all of the tab's navigations when
-// the regular user agent is overridden.
+// the regular user agent is overridden. Returns the WebContents of the restored
+// tab.
content::WebContents* AddRestoredTab(
Browser* browser,
const std::vector<sessions::SerializedNavigationEntry>& navigations,
@@ -45,8 +46,9 @@ content::WebContents* AddRestoredTab(
const std::string& user_agent_override);
// Replaces the state of the currently selected tab with the session
-// history restored from the SessionRestore system.
-void ReplaceRestoredTab(
+// history restored from the SessionRestore system. Returns the WebContents of
+// the restored tab.
+content::WebContents* ReplaceRestoredTab(
Browser* browser,
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int selected_navigation,
« no previous file with comments | « chrome/browser/ui/browser_tab_restore_service_delegate.cc ('k') | chrome/browser/ui/browser_tabrestore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698