diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 22:13:29 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 22:13:29 +0000 |
commit | 5aab5e2abeb4c9bec597c789c80299730564de26 (patch) | |
tree | a20fc73911e0821651d3adbc53c7d8508dd6b288 /chrome/browser/tabs/tab_strip_model.h | |
parent | 87bc614d39b9ce7625b35d4fb23f1b95da29301c (diff) | |
download | chromium_src-5aab5e2abeb4c9bec597c789c80299730564de26.zip chromium_src-5aab5e2abeb4c9bec597c789c80299730564de26.tar.gz chromium_src-5aab5e2abeb4c9bec597c789c80299730564de26.tar.bz2 |
Makes instant run before unload listeners.
BUG=64694
TEST=none
Review URL: http://codereview.chromium.org/5610005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.h')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h index 2aae16e..7a3c8d9 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 |