| 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
|
|
|