22 lines
938 B
Diff
22 lines
938 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 6a1d8bbebc69b031ac02b56756a8f313bd1b030f..ca61686d763cd7fb867599397a161e8c88c5b7a9 100644
|
|
--- a/content/browser/browser_main_loop.cc
|
|
+++ b/content/browser/browser_main_loop.cc
|
|
@@ -1570,7 +1570,7 @@ void BrowserMainLoop::MainMessageLoopRun() {
|
|
}
|
|
|
|
base::RunLoop run_loop;
|
|
- parts_->PreDefaultMainMessageLoopRun(run_loop.QuitClosure());
|
|
+ parts_->PreDefaultMainMessageLoopRun(run_loop.QuitWhenIdleClosure());
|
|
run_loop.Run();
|
|
#endif
|
|
}
|