mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 106.0.5249.0 (#1036826)
This commit is contained in:
@@ -282,10 +282,6 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
|
||||
// Create the global RequestContext.
|
||||
global_request_context_ =
|
||||
CefRequestContextImpl::CreateGlobalRequestContext(settings);
|
||||
auto browser_context =
|
||||
global_request_context_->GetBrowserContext()->AsBrowserContext();
|
||||
|
||||
CefDevToolsManagerDelegate::StartHttpHandler(browser_context);
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
// Windows parental controls calls can be slow, so we do an early init here
|
||||
@@ -326,6 +322,19 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
|
||||
return content::RESULT_CODE_NORMAL_EXIT;
|
||||
}
|
||||
|
||||
void AlloyBrowserMainParts::OnContextInitialized() {
|
||||
CEF_REQUIRE_UIT();
|
||||
|
||||
// Initialize the global RequestContext. This needs to occur on the UI thread
|
||||
// after the CEF context is initialized because it indirectly accesses the
|
||||
// ProfileManager.
|
||||
global_request_context_->InitializeGlobalContext();
|
||||
|
||||
auto browser_context =
|
||||
global_request_context_->GetBrowserContext()->AsBrowserContext();
|
||||
CefDevToolsManagerDelegate::StartHttpHandler(browser_context);
|
||||
}
|
||||
|
||||
void AlloyBrowserMainParts::PostMainMessageLoopRun() {
|
||||
// NOTE: Destroy objects in reverse order of creation.
|
||||
CefDevToolsManagerDelegate::StopHttpHandler();
|
||||
|
Reference in New Issue
Block a user