diff --git a/libcef/browser/main_runner.cc b/libcef/browser/main_runner.cc index c6a633693..a30a26a99 100644 --- a/libcef/browser/main_runner.cc +++ b/libcef/browser/main_runner.cc @@ -258,10 +258,6 @@ bool CefMainRunner::Initialize(CefSettings* settings, void* windows_sandbox_info, bool* initialized, base::OnceClosure context_initialized) { - LOG_IF(WARNING, !settings->chrome_runtime) - << "Alloy bootstrap is deprecated and will be removed in ~M127. See " - "https://github.com/chromiumembedded/cef/issues/3685"; - DCHECK(!main_delegate_); main_delegate_ = MakeDelegate( settings->chrome_runtime ? RuntimeType::CHROME : RuntimeType::ALLOY, this, diff --git a/libcef/common/alloy/alloy_main_delegate.cc b/libcef/common/alloy/alloy_main_delegate.cc index 5cce052a5..3466f9a06 100644 --- a/libcef/common/alloy/alloy_main_delegate.cc +++ b/libcef/common/alloy/alloy_main_delegate.cc @@ -556,6 +556,12 @@ std::optional AlloyMainDelegate::BasicStartupComplete() { logging::InitLogging(log_settings); + if (is_browser) { + LOG(WARNING) + << "Alloy bootstrap is deprecated and will be removed in ~M127. See " + "https://github.com/chromiumembedded/cef/issues/3685"; + } + ContentSettingsPattern::SetNonWildcardDomainNonPortSchemes( kNonWildcardDomainNonPortSchemes, kNonWildcardDomainNonPortSchemesSize);