| 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 dc62be6ab5f417f07048f103293645d968940520..cc0a4b9e617b17654865e2e2653252d55b46f251 100644
|
| --- a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm
|
| @@ -49,6 +49,13 @@ using content::WebContents;
|
| previewContents_ = nil;
|
| }
|
|
|
| +- (void)onInsertTabWithContents:(WebContents*)contents {
|
| + if (previewContents_ == contents) {
|
| + [previewContents_->GetNativeView() removeFromSuperview];
|
| + previewContents_ = nil;
|
| + }
|
| +}
|
| +
|
| - (BOOL)isShowingPreview {
|
| return previewContents_ != nil;
|
| }
|
|
|