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

Unified Diff: net/tools/net_watcher/net_watcher.cc

Issue 11308069: Get net_watcher working on Gnome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add OS_OPENBSD Created 8 years, 1 month 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 | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/net_watcher/net_watcher.cc
diff --git a/net/tools/net_watcher/net_watcher.cc b/net/tools/net_watcher/net_watcher.cc
index f756e971bf0a03c1ac365fa65de0d6e93441db15..cfe588b49ed5d2ad0f0c07f7d1c0ea3f37f92b28 100644
--- a/net/tools/net_watcher/net_watcher.cc
+++ b/net/tools/net_watcher/net_watcher.cc
@@ -21,6 +21,10 @@
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_service.h"
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
+#include <glib-object.h>
+#endif
+
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
@@ -119,6 +123,11 @@ int main(int argc, char* argv[]) {
#if defined(OS_MACOSX)
base::mac::ScopedNSAutoreleasePool pool;
#endif
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
+ // Needed so ProxyConfigServiceLinux can use gconf.
+ // Normally handled by BrowserMainLoop::InitializeToolkit().
+ g_type_init();
+#endif
base::AtExitManager exit_manager;
CommandLine::Init(argc, argv);
logging::InitLogging(
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698