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

Unified Diff: base/message_loop.cc

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
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index a207659a4a922203a2e3850bbcdde4b1425dd21d..4d6dbb8a3f7368d937d3b3107bd52e9999138fd8 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -335,11 +335,20 @@ static void QuitCurrent() {
MessageLoop::current()->Quit();
}
+static void QuitNowCurrent() {
+ MessageLoop::current()->QuitNow();
+}
+
// static
base::Closure MessageLoop::QuitClosure() {
return base::Bind(&QuitCurrent);
}
+// static
+base::Closure MessageLoop::QuitNowClosure() {
+ return base::Bind(&QuitNowCurrent);
+}
+
void MessageLoop::SetNestableTasksAllowed(bool allowed) {
if (nestable_tasks_allowed_ != allowed) {
nestable_tasks_allowed_ = allowed;

Powered by Google App Engine
This is Rietveld 408576698