alloy: Move warning after logging init (fixes #3713)

This commit is contained in:
Marshall Greenblatt 2024-06-10 11:00:28 -04:00
parent c8b1a8cb23
commit c410c950de
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -556,6 +556,12 @@ std::optional<int> 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);