db21391156
Co-authored-by: Erick Zhao <erickzhao@github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by Micha Hanselmann <DeerMichel@github.com>
22 lines
955 B
Diff
22 lines
955 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
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 5acff0fbb0babb3fd46d6ec716910f3c97bc73dc..561a5dcb6bbca381875f4765b52fc0df2d5f6d4b 100644
|
|
--- a/content/browser/browser_main_loop.cc
|
|
+++ b/content/browser/browser_main_loop.cc
|
|
@@ -1492,7 +1492,7 @@ void BrowserMainLoop::MainMessageLoopRun() {
|
|
NOTREACHED();
|
|
#else
|
|
base::RunLoop run_loop;
|
|
- parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure());
|
|
+ parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure());
|
|
run_loop.Run();
|
|
#endif
|
|
}
|