mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Simplify ownership of CefBrowserContext objects (issue #2083)
This commit is contained in:
@ -57,10 +57,10 @@ bool GetTabById(int tab_id,
|
||||
if (!request_context)
|
||||
continue;
|
||||
CefRefPtr<CefRequestContextImpl> request_context_impl =
|
||||
CefRequestContextImpl::GetForRequestContext(request_context);
|
||||
CefRequestContextImpl::GetOrCreateForRequestContext(request_context);
|
||||
if (!request_context_impl)
|
||||
continue;
|
||||
scoped_refptr<CefBrowserContext> browser_context =
|
||||
CefBrowserContext* browser_context =
|
||||
request_context_impl->GetBrowserContext();
|
||||
if (!browser_context)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user