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

Unified Diff: base/message_loop.cc

Issue 16020005: Fixed the racy code around the message-only window in base::MessagePumpForUI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 6 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 | « base/base.gypi ('k') | base/message_pump.h » ('j') | base/message_pump_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 0d8a8ef0d769875f386e244b69932779e9ed2271..4289b3c4f5a506087723d03b225f734c54821b9c 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -221,6 +221,9 @@ MessageLoop::~MessageLoop() {
WillDestroyCurrentMessageLoop();
message_loop_proxy_ = NULL;
+ // Notify the message pump that the message loop is going away.
+ pump_->WillDestroyCurrentMessageLoop();
+
// OK, now make it so that no one can find us.
lazy_tls_ptr.Pointer()->Set(NULL);
« no previous file with comments | « base/base.gypi ('k') | base/message_pump.h » ('j') | base/message_pump_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698