Skip to content

Commit

Permalink
Restore support for CreateBrowserSync with NULL |request_context| (se…
Browse files Browse the repository at this point in the history
…e issue chromiumembedded#2969)

This was unintentionally lost during the Chrome runtime refactoring effort.
  • Loading branch information
magreenblatt committed May 20, 2021
1 parent 7a604aa commit 3c44b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcef/browser/browser_host_create.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3c44b04

Please sign in to comment.