Index: base/message_loop/message_loop.cc |
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc |
index 023bcf42e2de0cb1157347d9f97e1afca166f076..a7217eba2f7284af95a85bb768c69f44820fc9b5 100644 |
--- a/base/message_loop/message_loop.cc |
+++ b/base/message_loop/message_loop.cc |
@@ -92,8 +92,6 @@ |
// time for every task that is added to the MessageLoop incoming queue. |
bool AlwaysNotifyPump(MessageLoop::Type type) { |
#if defined(OS_ANDROID) |
- // The Android UI message loop needs to get notified each time a task is added |
- // to the incoming queue. |
return type == MessageLoop::TYPE_UI || type == MessageLoop::TYPE_JAVA; |
#else |
return false; |
@@ -530,6 +528,8 @@ |
} |
void MessageLoop::ScheduleWork(bool was_empty) { |
+ // The Android UI message loop needs to get notified each time |
+ // a task is added to the incoming queue. |
if (was_empty || AlwaysNotifyPump(type_)) |
pump_->ScheduleWork(); |
} |