Index: base/message_loop.cc |
diff --git a/base/message_loop.cc b/base/message_loop.cc |
index bf0d25da975981b361ab576ddb6eeb6b26cc7021..021a426bbaa8692c4ac0a1bc4783e09bb8086c18 100644 |
--- a/base/message_loop.cc |
+++ b/base/message_loop.cc |
@@ -354,6 +354,12 @@ void MessageLoop::QuitNow() { |
} |
} |
+void MessageLoop::CancelQuit() { |
+ DCHECK_EQ(this, current()); |
+ if (state_) |
+ state_->quit_received = false; |
+} |
+ |
void MessageLoop::SetNestableTasksAllowed(bool allowed) { |
if (nestable_tasks_allowed_ != allowed) { |
nestable_tasks_allowed_ = allowed; |