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

Unified Diff: content/browser/browser_main.cc

Issue 8195003: Initialize glib for all linux variants (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main.cc
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc
index 6a7833c726fea25b24f0b3363742ce57fd149d70..ace957938dd60d0831b59dff35ee7dbcaa217354 100644
--- a/content/browser/browser_main.cc
+++ b/content/browser/browser_main.cc
@@ -38,6 +38,10 @@
#include "ui/base/l10n/l10n_util_win.h"
#endif
+#if defined(OS_LINUX)
+#include <glib-object.h>
+#endif
+
#if defined(OS_CHROMEOS)
#include <dbus/dbus-glib.h>
#endif
@@ -104,7 +108,7 @@ void SetupSandbox(const CommandLine& parsed_command_line) {
}
#endif
-#if defined(TOOLKIT_USES_GTK)
+#if defined(OS_LINUX)
static void GLibLogHandler(const gchar* log_domain,
GLogLevelFlags log_level,
const gchar* message,
@@ -276,7 +280,7 @@ void BrowserMainParts::InitializeToolkit() {
// of intersecting ifdefs we have. To keep it easy to follow, there
// are no #else branches on any #ifs.
-#if defined(TOOLKIT_USES_GTK)
+#if defined(OS_LINUX)
// We want to call g_thread_init(), but in some codepaths (tests) it
// is possible it has already been called. In older versions of
// GTK, it is an error to call g_thread_init twice; unfortunately,
@@ -297,10 +301,7 @@ void BrowserMainParts::InitializeToolkit() {
// TODO(satorux, stevenjb): remove this once it is no longer needed.
dbus_g_thread_init();
#endif
-#if defined(USE_AURA)
- // TODO(oshima|saintlou): Remove this once we remove gtk from build
- base::MessagePumpX::DisableGtkMessagePump();
-#else
+#if !defined(USE_AURA)
gfx::GtkInitFromCommandLine(parameters().command_line_);
#endif
SetUpGLibLogHandler();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698