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

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: 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..440f61b3b6530df10d53bc4aadb72ee6bf8ffef6 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)
szym 2012/11/16 16:35:41 || defined(OS_OPENBSD) to match BrowserMainLoop::I
pauljensen 2012/11/16 16:49:33 digit1 thought it wasn't worth it as it's guarding
+#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)
szym 2012/11/16 16:35:41 ditto
+ // Needed so ProxyConfigServiceLinux can use gconf.
+ // Normally handled by BrowserMainLoop::InitializeToolkit().
+ g_type_init();
szym 2012/11/16 16:35:41 I am surprised ProxyConfigServiceLinuxTest does no
+#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