Index: base/message_loop.cc |
diff --git a/base/message_loop.cc b/base/message_loop.cc |
index 9cef7bff23181c01a03eda4c3cf06f9795f53a4c..10f4a262f55f422393f7ad88f6e56986ec6e1221 100644 |
--- a/base/message_loop.cc |
+++ b/base/message_loop.cc |
@@ -31,11 +31,6 @@ |
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
#include <gdk/gdk.h> |
#include <gdk/gdkx.h> |
-#if defined(TOUCH_UI) |
-#include "base/message_pump_x.h" |
-#else |
-#include "base/message_pump_gtk.h" |
-#endif // defined(TOUCH_UI) |
#endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
using base::TimeDelta; |
@@ -150,6 +145,9 @@ MessageLoop::MessageLoop(Type type) |
#elif defined(OS_ANDROID) |
#define MESSAGE_PUMP_UI new base::MessagePumpForUI() |
#define MESSAGE_PUMP_IO new base::MessagePumpLibevent() |
+#elif defined(USE_WAYLAND) |
+#define MESSAGE_PUMP_UI new base::MessagePumpWayland() |
+#define MESSAGE_PUMP_IO new base::MessagePumpLibevent() |
#elif defined(TOUCH_UI) |
#define MESSAGE_PUMP_UI new base::MessagePumpX() |
#define MESSAGE_PUMP_IO new base::MessagePumpLibevent() |