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

Unified Diff: base/message_loop/message_loop.cc

Issue 18181011: Make a fairer combined message loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused delayed timer message 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
Index: base/message_loop/message_loop.cc
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index 4e0c5f6801e9e15d36a5e7d220d0b956ff91f7a9..0d11d26ae0b86ec7dd6395bc13519a49f7c64b06 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -624,7 +624,7 @@ bool MessageLoop::AddToIncomingQueue(PendingTask* pending_task,
bool was_empty = incoming_queue_.empty();
incoming_queue_.push(*pending_task);
pending_task->task.Reset();
- if (!was_empty)
+ if (!was_empty && !IsType(TYPE_UI))
klobag.chromium 2013/06/28 20:57:13 Do you need this to get ScheduleWork() called? Sho
Kristian Monsen 2013/06/28 21:04:41 Yes, this is to avoid early out and always get Sch
joth 2013/07/01 19:28:54 Might be cleaner to delegate this to the pump: if
Kristian Monsen 2013/07/02 21:32:27 Delegated to the pump.
return true; // Someone else should have started the sub-pump.
pump = pump_;

Powered by Google App Engine
This is Rietveld 408576698