Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2057)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 083099e583465e1ad2aa319e745c23b8ca161eae..69c2050a3f5b8076ab57ce5f971a38302759be76 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -977,6 +977,7 @@ void RenderThreadImpl::Shutdown() {
renderer_scheduler_->Shutdown();
if (main_message_loop_)
base::RunLoop().RunUntilIdle();
+ main_message_loop_ = nullptr;
if (blink_platform_impl_) {
blink_platform_impl_->Shutdown();
@@ -991,11 +992,6 @@ void RenderThreadImpl::Shutdown() {
// may try to unlock their underlying discardable memory.
ChildThreadImpl::ShutdownDiscardableSharedMemoryManager();
- // The message loop must be cleared after shutting down
- // the DiscardableSharedMemoryManager, which needs to send messages
- // to the browser process.
esprehn 2016/07/19 16:42:54 You're doing the opposite of what the comment says
tzik 2016/07/19 17:26:52 The comment looks inaccurate to me. ChildDiscardab
- main_message_loop_.reset();
-
lazy_tls.Pointer()->Set(nullptr);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698