Index: chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm |
diff --git a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm |
index f27b29932ffbda1fd8a88c7de60553e8ce10cf4f..dc62be6ab5f417f07048f103293645d968940520 100644 |
--- a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm |
+++ b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm |
@@ -33,9 +33,9 @@ using content::WebContents; |
NSView* previewView = previewContents_->GetNativeView(); |
[previewView setFrame:[[self view] bounds]]; |
- // Hide the active container and add the preview contents. |
- [activeContainer_ setHidden:YES]; |
+ // Add the preview contents. |
[[self view] addSubview:previewView]; |
+ previewContents_->WasShown(); |
} |
- (void)hidePreview { |
@@ -43,10 +43,9 @@ using content::WebContents; |
if (!previewContents_) |
return; |
- // Remove the preview contents and reshow the active container. |
+ // Remove the preview contents. |
[previewContents_->GetNativeView() removeFromSuperview]; |
- [activeContainer_ setHidden:NO]; |
- |
+ previewContents_->WasHidden(); |
previewContents_ = nil; |
} |