| Index: base/message_loop/message_loop.cc
|
| diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
|
| index c01e5421bc3478605c5a0b16ef15d36a6bb9af78..ae469f67a408ab1f3e072f2e259342fc8d12724f 100644
|
| --- a/base/message_loop/message_loop.cc
|
| +++ b/base/message_loop/message_loop.cc
|
| @@ -86,18 +86,6 @@ bool enable_histogrammer_ = false;
|
|
|
| MessageLoop::MessagePumpFactory* message_pump_for_ui_factory_ = NULL;
|
|
|
| -// Returns true if MessagePump::ScheduleWork() must be called one
|
| -// 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;
|
| -#endif
|
| -}
|
| -
|
| #if defined(OS_IOS)
|
| typedef MessagePumpIOSForIO MessagePumpForIO;
|
| #elif defined(OS_NACL)
|
| @@ -510,9 +498,8 @@ void MessageLoop::ReloadWorkQueue() {
|
| }
|
| }
|
|
|
| -void MessageLoop::ScheduleWork(bool was_empty) {
|
| - if (was_empty || AlwaysNotifyPump(type_))
|
| - pump_->ScheduleWork();
|
| +void MessageLoop::ScheduleWork() {
|
| + pump_->ScheduleWork();
|
| }
|
|
|
| //------------------------------------------------------------------------------
|
|
|