Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 09a522d1bf3291e57d8ae6d9fb2f7e7d74746c0f..9ea3a406607c919bf16a76f75eab748ff0767abd 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -4311,10 +4311,16 @@ 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(); |
+ GetSelectedTabContents()->ShowContents(); |
sky
2011/10/26 00:01:06
What is the event ordering on a tab switch? I want
|
+ if (instant_->GetPreviewContents()) |
+ instant_->GetPreviewContents()->tab_contents()->HideContents(); |
} |
void Browser::CommitInstant(TabContentsWrapper* preview_contents) { |