Index: chrome/browser/browser.h |
=================================================================== |
--- chrome/browser/browser.h (revision 30525) |
+++ chrome/browser/browser.h (working copy) |
@@ -256,12 +256,14 @@ |
// system. If select is true, the tab is selected. |tab_index| gives the index |
// to insert the tab at. |selected_navigation| is the index of the |
// TabNavigation in |navigations| to select. If |pin| is true and |tab_index| |
- // is the last pinned tab, then the newly created tab is pinned. |
+ // is the last pinned tab, then the newly created tab is pinned. If |
+ // |from_last_session| is true, |navigations| are from the previous session. |
TabContents* AddRestoredTab(const std::vector<TabNavigation>& navigations, |
int tab_index, |
int selected_navigation, |
bool select, |
- bool pin); |
+ bool pin, |
+ bool from_last_session); |
// Creates a new tab with the already-created TabContents 'new_contents'. |
// The window for the added contents will be reparented correctly when this |
// method returns. If |disposition| is NEW_POPUP, |pos| should hold the |
@@ -294,7 +296,8 @@ |
// history restored from the SessionRestore system. |
void ReplaceRestoredTab( |
const std::vector<TabNavigation>& navigations, |
- int selected_navigation); |
+ int selected_navigation, |
+ bool from_last_session); |
// Returns true if a tab can be restored. |
virtual bool CanRestoreTab(); |
@@ -623,12 +626,6 @@ |
// >= index. |
void SyncHistoryWithTabs(int index); |
- // Called from AddRestoredTab and ReplaceRestoredTab to build a |
- // TabContents from an incoming vector of TabNavigations. |
- // Caller takes ownership of the returned TabContents. |
- TabContents* BuildRestoredTab(const std::vector<TabNavigation>& navigations, |
- int selected_navigation); |
- |
// OnBeforeUnload handling ////////////////////////////////////////////////// |
typedef std::set<TabContents*> UnloadListenerSet; |