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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2314613002: Revert of Stop shutting down the message loop when the renderer stops (patchset #1 id:1 of https://… (Closed)
Patch Set: Created 4 years, 3 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 c0f7350b4eb726b64533079fe58c5819e1fa53c5..7788e23d39496274d0f03de72922196351b52f2b 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -967,6 +967,11 @@ void RenderThreadImpl::Shutdown() {
ChildThreadImpl::ShutdownDiscardableSharedMemoryManager();
+ if (main_message_loop_)
+ base::RunLoop().RunUntilIdle();
+
+ 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