diff options
Diffstat (limited to 'chrome/browser/ui/browser.cc')
-rw-r--r-- | chrome/browser/ui/browser.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc index 5045060..4023c19 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc @@ -4387,10 +4387,17 @@ void Browser::OnStateChanged() { void Browser::ShowInstant(TabContentsWrapper* preview_contents) { DCHECK(instant_->tab_contents() == GetSelectedTabContentsWrapper()); window_->ShowInstant(preview_contents); + + GetSelectedTabContents()->HideContents(); + preview_contents->tab_contents()->ShowContents(); } void Browser::HideInstant() { window_->HideInstant(); + if (GetSelectedTabContents()) + GetSelectedTabContents()->ShowContents(); + if (instant_->GetPreviewContents()) + instant_->GetPreviewContents()->tab_contents()->HideContents(); } void Browser::CommitInstant(TabContentsWrapper* preview_contents) { |