| Index: chrome/browser/tabs/tab_strip_model.h
|
| ===================================================================
|
| --- chrome/browser/tabs/tab_strip_model.h (revision 68655)
|
| +++ chrome/browser/tabs/tab_strip_model.h (working copy)
|
| @@ -195,9 +195,11 @@
|
| 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
|
|
|