| Index: chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.mm
|
| index 634f456f716cf5e94946e3639863ae0349947c85..0d51a488a2be89d772839640e2206c7fdf2479d5 100644
|
| --- a/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.mm
|
| @@ -130,6 +130,13 @@
|
| return instantOverlayController_.get();
|
| }
|
|
|
| +- (void)onWebContentsDestroyed:(content::WebContents*)webContents {
|
| + if (overlayContents_ == webContents) {
|
| + [overlayContents_->GetView()->GetNativeView() removeFromSuperview];
|
| + overlayContents_ = NULL;
|
| + }
|
| +}
|
| +
|
| - (NSView*)activeContainer {
|
| return activeContainer_.get();
|
| }
|
|
|