mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix dangling raw_ptr errors and related issues (see #3239)
- Use raw_ptr in class container fields. - Use defined lifespan for StreamReaderURLLoader. - Fix lifespan assumptions for WebContents/RFH usage.
This commit is contained in:
@@ -56,8 +56,8 @@ class CefLayoutImpl : public CefLayoutAdapter, public CefLayoutClass {
|
||||
owner_view_ = owner_view;
|
||||
layout_ref_ = CreateLayout();
|
||||
DCHECK(layout_ref_);
|
||||
owner_view->SetLayoutManager(base::WrapUnique(layout_ref_.get()));
|
||||
layout_util::Assign(this, owner_view);
|
||||
owner_view->SetLayoutManager(base::WrapUnique(layout_ref_.get()));
|
||||
}
|
||||
|
||||
// Create the views::LayoutManager object.
|
||||
|
Reference in New Issue
Block a user