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

Unified Diff: chrome/browser/tabs/tab_strip_model.h

Issue 5610005: Makes instant run before unload listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Fix comments and reset session id appropriately Created 10 years 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/tab_contents/tab_contents_delegate.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.h
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h
index 2aae16e905d6860a6b7cd2e053d6f80e464268cc..7a3c8d912d160a75842745697185465c26de58cc 100644
--- a/chrome/browser/tabs/tab_strip_model.h
+++ b/chrome/browser/tabs/tab_strip_model.h
@@ -195,9 +195,11 @@ class TabStripModel : public NotificationObserver {
void ReplaceNavigationControllerAt(int index,
TabContentsWrapper* contents);
- // Replaces the tab contents at |index| with |new_contents|. This deletes the
- // TabContents currently at |index|.
- void ReplaceTabContentsAt(int index, TabContentsWrapper* new_contents);
+ // Replaces the tab contents at |index| with |new_contents|. The
+ // TabContentsWrapper that was at |index| is returned and ownership returns
+ // to the caller.
+ TabContentsWrapper* ReplaceTabContentsAt(int index,
+ TabContentsWrapper* new_contents);
// Detaches the TabContents at the specified index from this strip. The
// TabContents is not destroyed, just removed from display. The caller is
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698