REVIEW: Use strong ownership for attached inner WebContents

https://chromium-review.googlesource.com/c/1301843
This commit is contained in:
Jeremy Apthorp 2019-01-09 15:07:29 -08:00
parent 96b2623887
commit c0cf065c1a

View file

@ -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<content::WebContents>(embedder_web_contents_),
embedder_frame);
ResetZoomController();