diff --git a/atom/browser/web_view_guest_delegate.cc b/atom/browser/web_view_guest_delegate.cc index ad7fce4e3149..7b72295a68b7 100644 --- a/atom/browser/web_view_guest_delegate.cc +++ b/atom/browser/web_view_guest_delegate.cc @@ -42,7 +42,8 @@ void WebViewGuestDelegate::AttachToIframe( // WebContents |embedder_web_contents|. The outer WebContents's // frame |embedder_frame| hosts the inner WebContents. api_web_contents_->web_contents()->AttachToOuterWebContentsFrame( - embedder_web_contents_, embedder_frame); + base::WrapUnique(embedder_web_contents_), + embedder_frame); ResetZoomController();