Index: base/message_loop/message_pump_x11.cc |
diff --git a/base/message_loop/message_pump_x11.cc b/base/message_loop/message_pump_x11.cc |
index 6a4db101474239447ab2130903688b19a088645b..cee54fd6bf279353d440fed2db4396ada6a3db73 100644 |
--- a/base/message_loop/message_pump_x11.cc |
+++ b/base/message_loop/message_pump_x11.cc |
@@ -66,16 +66,8 @@ void MessagePumpX11::RemoveObserver(MessagePumpObserver* observer) { |
observers_.RemoveObserver(observer); |
} |
-bool MessagePumpX11::WillProcessXEvent(XEvent* xevent) { |
- if (!observers_.might_have_observers()) |
- return false; |
- ObserverListBase<MessagePumpObserver>::Iterator it(observers_); |
- MessagePumpObserver* obs; |
- while ((obs = it.GetNext()) != NULL) { |
- if (obs->WillProcessEvent(xevent)) |
- return true; |
- } |
- return false; |
+void MessagePumpX11::WillProcessXEvent(XEvent* xevent) { |
+ FOR_EACH_OBSERVER(MessagePumpObserver, observers_, WillProcessEvent(xevent)); |
} |
void MessagePumpX11::DidProcessXEvent(XEvent* xevent) { |