2018-10-24 18:24:11 +00:00
|
|
|
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.
|
|
|
|
|
2018-10-08 21:29:58 +00:00
|
|
|
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
2019-05-28 20:18:10 +00:00
|
|
|
index 80a9629832145f498c8f475922f9cfe7d32faed7..4bc87713d33742207d37b74ffd93cc8c4b7c5916 100644
|
2018-10-08 21:29:58 +00:00
|
|
|
--- a/content/browser/browser_main_loop.cc
|
|
|
|
+++ b/content/browser/browser_main_loop.cc
|
2019-05-28 20:18:10 +00:00
|
|
|
@@ -1529,7 +1529,7 @@ void BrowserMainLoop::MainMessageLoopRun() {
|
2018-10-08 21:29:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
base::RunLoop run_loop;
|
|
|
|
- parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure());
|
|
|
|
+ parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure());
|
|
|
|
run_loop.Run();
|
|
|
|
#endif
|
|
|
|
}
|