Restore support for CreateBrowserSync with NULL |request_context| (see issue #2969)

This was unintentionally lost during the Chrome runtime refactoring effort.
This commit is contained in:
Marshall Greenblatt 2021-05-20 15:09:10 -04:00
parent 21ac0be8d7
commit 5ddd26e483
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
return nullptr;
}
if (!request_context) {
request_context = CefRequestContext::GetGlobalContext();
}
// Verify that the browser context is valid.
auto request_context_impl =
static_cast<CefRequestContextImpl*>(request_context.get());