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

Unified Diff: base/message_loop.h

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change Quit to QuitNow in places where it makes sense Created 8 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 | « no previous file | base/message_loop.cc » ('j') | chrome/test/base/ui_test_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index d78b58addc2019ad46b61e79adf8c918f432a9dd..2dfb85c1549ca092b92c1bb01a3864b4154ca189 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -242,6 +242,10 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// arbitrary MessageLoop to Quit.
static base::Closure QuitClosure();
+ // Invokes QuitNow on the current MessageLoop when run. Useful to schedule an
+ // arbitrary MessageLoop to QuitNow.
+ static base::Closure QuitNowClosure();
+
// Returns the type passed to the constructor.
Type type() const { return type_; }
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | chrome/test/base/ui_test_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698