From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Thu, 18 Oct 2018 17:07:42 -0700 Subject: content_browser_main_loop.patch Pass idle quit closure for main message loop, so that pending tasks are run before shutdown. This is required to cleanup WebContents asynchronously in atom::CommonWebContentsDelegate::ResetManageWebContents. diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc index 6e3dfde1019beee050e542934470beebd7a0c43e..76dd73f3ccfb43d0e74016a5a84afd4a2db22ca4 100644 --- a/content/browser/browser_main_loop.cc +++ b/content/browser/browser_main_loop.cc @@ -1564,7 +1564,7 @@ void BrowserMainLoop::MainMessageLoopRun() { } base::RunLoop run_loop; - parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure()); + parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure()); run_loop.Run(); #endif }