diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-03 22:36:40 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-03 22:36:40 +0000 |
commit | 91bb6524cc24c8f5ee0ff3737a0ac0b381436f25 (patch) | |
tree | f6fc32cf70cf4c45c296f342c0acf2889faf2ed8 /chrome/browser | |
parent | 8d07ecaa76159c6d6ab3982d9b59aac1bb4de3a0 (diff) | |
download | chromium_src-91bb6524cc24c8f5ee0ff3737a0ac0b381436f25.zip chromium_src-91bb6524cc24c8f5ee0ff3737a0ac0b381436f25.tar.gz chromium_src-91bb6524cc24c8f5ee0ff3737a0ac0b381436f25.tar.bz2 |
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
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/views/frame/browser_view2.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |