Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: base/message_loop.cc

Issue 4261: Implement MessageLoopForUI using GLib. This gets some exercise from... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/SConscript ('k') | base/message_pump_glib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
===================================================================
--- base/message_loop.cc (revision 2721)
+++ base/message_loop.cc (working copy)
@@ -19,6 +19,9 @@
#if defined(OS_POSIX)
#include "base/message_pump_libevent.h"
#endif
+#if defined(OS_LINUX)
+#include "base/message_pump_glib.h"
+#endif
// A lazily created thread local storage for quick access to a thread's message
// loop, if one exists. This should be safe and free of static constructors.
@@ -89,18 +92,17 @@
pump_ = new base::MessagePumpForUI();
}
#elif defined(OS_POSIX)
+ if (type_ == TYPE_UI) {
#if defined(OS_MACOSX)
- if (type_ == TYPE_UI) {
pump_ = base::MessagePumpMac::Create();
- } else
-#endif // OS_MACOSX
- if (type_ == TYPE_IO) {
+#elif defined(OS_LINUX)
+ pump_ = new base::MessagePumpForUI();
+#endif // OS_LINUX
+ } else if (type_ == TYPE_IO) {
pump_ = new base::MessagePumpLibevent();
} else {
pump_ = new base::MessagePumpDefault();
}
-#else // OS_POSIX
- pump_ = new base::MessagePumpDefault();
#endif // OS_POSIX
}
« no previous file with comments | « base/SConscript ('k') | base/message_pump_glib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698