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

Unified Diff: chrome/browser/ui/browser_tabrestore.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/ui/browser_tabrestore.cc
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc
index 9bb737a4d97ea4e407d2d7c44a843ea1ec5aa9d9..f939a74327c13c3394d662f3a9e7d44766a7017e 100644
--- a/chrome/browser/ui/browser_tabrestore.cc
+++ b/chrome/browser/ui/browser_tabrestore.cc
@@ -130,7 +130,7 @@ content::WebContents* AddRestoredTab(
return web_contents;
}
-void ReplaceRestoredTab(
+content::WebContents* ReplaceRestoredTab(
Browser* browser,
const std::vector<SerializedNavigationEntry>& navigations,
int selected_navigation,
@@ -155,6 +155,7 @@ void ReplaceRestoredTab(
TabStripModel::ADD_ACTIVE |
TabStripModel::ADD_INHERIT_GROUP);
tab_strip->CloseWebContentsAt(insertion_index, TabStripModel::CLOSE_NONE);
+ return web_contents;
}
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698