mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix DiscardableSharedMemoryManager destruction timing
Move DiscardableSharedMemoryManager destruction to the end of UI thread shutdown, after Mojo messages have stopped arriving. See related comments at https://chromium-review.googlesource.com/c/chromium/src/+/5925441
This commit is contained in:
@@ -449,9 +449,6 @@ void CefMainRunner::StartShutdownOnUIThread(
|
|||||||
content::BrowserTaskExecutor::RunAllPendingTasksOnThreadForTesting(
|
content::BrowserTaskExecutor::RunAllPendingTasksOnThreadForTesting(
|
||||||
content::BrowserThread::IO);
|
content::BrowserThread::IO);
|
||||||
|
|
||||||
static_cast<content::ContentMainRunnerImpl*>(main_runner_.get())
|
|
||||||
->ShutdownOnUIThread();
|
|
||||||
|
|
||||||
std::move(shutdown_on_ui_thread).Run();
|
std::move(shutdown_on_ui_thread).Run();
|
||||||
BeforeUIThreadShutdown();
|
BeforeUIThreadShutdown();
|
||||||
}
|
}
|
||||||
@@ -462,6 +459,9 @@ void CefMainRunner::FinishShutdownOnUIThread() {
|
|||||||
// It is safe to call multiple times.
|
// It is safe to call multiple times.
|
||||||
ChromeProcessSingleton::DeleteInstance();
|
ChromeProcessSingleton::DeleteInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static_cast<content::ContentMainRunnerImpl*>(main_runner_.get())
|
||||||
|
->ShutdownOnUIThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CefMainRunner::BeforeUIThreadInitialize() {
|
void CefMainRunner::BeforeUIThreadInitialize() {
|
||||||
|
Reference in New Issue
Block a user