x11: Make the event-source work with both glib and libevent message-pumps.
Split up the X11EventSource into X11EventSourceGlib to work with the glib message-pump,
and X11EventSourceLibevent to work with the libevent message-pump. With this change, it
is possible to build and run chromeos without glib (use_glib = 0).
BUG=354062, 240715
R=darin@chromium.org, sky@chromium.org
Review URL: https://codereview.chromium.org/244093002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265007 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 4378628c0af281735b7e209e4dbe5ea6bccf3333
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index 193fe7c..0ca6e81 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -670,7 +670,8 @@
}
#endif // !defined(OS_NACL) && defined(OS_WIN)
-#if defined(USE_OZONE) && !defined(OS_NACL)
+#if !defined(OS_NACL) && \
+ (defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)))
bool MessageLoopForUI::WatchFileDescriptor(
int fd,
bool persistent,