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 0a8b4dfbb7d8530bd0df5b6017c465d1d05f0cc1..b1004211eaf637734259efca9e4d7e127bfed30e 100644 |
--- a/net/tools/net_watcher/net_watcher.cc |
+++ b/net/tools/net_watcher/net_watcher.cc |
@@ -136,20 +136,9 @@ int main(int argc, char* argv[]) { |
// Normally handled by BrowserMainLoop::InitializeToolkit(). |
// From glib version 2.36 onwards, g_type_init is implicitly called and it is |
// deprecated. |
- // TODO(yael) Simplify this once Ubuntu 10.04 is no longer supported. |
-#if defined(G_GNUC_BEGIN_IGNORE_DEPRECATIONS) && \ |
- defined(G_GNUC_END_IGNORE_DEPRECATIONS) |
-#define USE_GLIB_DEPRECATIONS_MACROS |
-#endif |
- |
-#if defined(USE_GLIB_DEPRECATIONS_MACROS) |
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
-#endif |
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36) |
akalin
2013/10/04 17:24:49
Shouldn't this be something like:
(GLIB_MAJOR_VER
|
g_type_init(); |
-#if defined(USE_GLIB_DEPRECATIONS_MACROS) |
-G_GNUC_END_IGNORE_DEPRECATIONS |
#endif |
-#undef USE_GLIB_DEPRECATIONS_MACROS |
#endif // (defined(OS_LINUX) || defined(OS_OPENBSD)) && !defined(OS_CHROMEOS) |
base::AtExitManager exit_manager; |
CommandLine::Init(argc, argv); |