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

Unified Diff: content/browser/browser_main.cc

Issue 7835021: Linux: use our spiffy new DBus client library for KWallet, instead of dbus-glib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/chrome_browser.gypi ('k') | 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
===================================================================
--- content/browser/browser_main.cc (revision 100784)
+++ content/browser/browser_main.cc (working copy)
@@ -37,8 +37,11 @@
#include "ui/base/l10n/l10n_util_win.h"
#endif
+#if defined(OS_CHROMEOS)
+#include <dbus/dbus-glib.h>
+#endif
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
-#include <dbus/dbus-glib.h>
#include <sys/stat.h>
#include "content/browser/renderer_host/render_sandbox_host_linux.h"
@@ -284,10 +287,11 @@
// definitely harmless, so retained as a reminder of this
// requirement for gconf.
g_type_init();
- // We use glib-dbus for geolocation and it's possible other libraries
- // (e.g. gnome-keyring) will use it, so initialize its threading here
- // as well.
+#if defined(OS_CHROMEOS)
+ // ChromeOS still uses dbus-glib, so initialize its threading here.
+ // TODO(satorux, stevenjb): remove this once it is no longer needed.
dbus_g_thread_init();
+#endif
gfx::GtkInitFromCommandLine(parameters().command_line_);
SetUpGLibLogHandler();
#endif
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698