cefclient: win: Fix MSVC compile error

This commit is contained in:
Marshall Greenblatt 2024-05-31 13:28:33 -04:00
parent 8e79307a62
commit 15c7e80e3c
1 changed files with 4 additions and 4 deletions

View File

@ -246,11 +246,11 @@ CefRefPtr<CefRequestContext> RootWindowManager::CreateRequestContext(
if (request_context_per_browser_) {
// Synchronous use of non-global request contexts is not safe with the
// Chrome runtime.
CHECK(!callback.is_null()
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
|| !MainContext::Get()->UseChromeBootstrap()
#if defined(DISABLE_ALLOY_BOOTSTRAP)
CHECK(!callback.is_null());
#else
CHECK(!callback.is_null() || !MainContext::Get()->UseChromeBootstrap());
#endif
);
// Create a new request context for each browser.
CefRequestContextSettings settings;