From 91bb6524cc24c8f5ee0ff3737a0ac0b381436f25 Mon Sep 17 00:00:00 2001 From: "beng@google.com" Date: Wed, 3 Sep 2008 22:36:40 +0000 Subject: Make sure the new frames' BrowserView2::TabSelectedAt calls TabContents::DidBecomeSelected, like Browser::TabSelectedAt does for the old frames. This was causing tab-restore related features (undo close tab, duplicate tab) to result in sad tab being shown when using the magic_browzR switch. B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1698 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/frame/browser_view2.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views') diff --git a/chrome/browser/views/frame/browser_view2.cc b/chrome/browser/views/frame/browser_view2.cc index 68a0325..db3eedf 100644 --- a/chrome/browser/views/frame/browser_view2.cc +++ b/chrome/browser/views/frame/browser_view2.cc @@ -478,7 +478,11 @@ void BrowserView2::TabSelectedAt(TabContents* old_contents, // Tell the frame what happened so that the TabContents gets resized, etc. contents_container_->SetTabContents(new_contents); - + // TODO(beng): This should be called automatically by SetTabContents, but I + // am striving for parity now rather than cleanliness. This is + // required to make features like Duplicate Tab, Undo Close Tab, + // etc not result in sad tab. + new_contents->DidBecomeSelected(); if (BrowserList::GetLastActive() == browser_) new_contents->RestoreFocus(); -- cgit v1.1