summaryrefslogtreecommitdiffstats
path: root/base/leak_tracker.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 02:42:13 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 02:42:13 +0000
commitc0222007b5c580f0d5b8332e491c12918c9bad04 (patch)
tree98c5144dec2b85e6e81a7b5900a921717d726265 /base/leak_tracker.h
parent19405fdf24e2be29b26625e5b525fa501839c345 (diff)
downloadchromium_src-c0222007b5c580f0d5b8332e491c12918c9bad04.zip
chromium_src-c0222007b5c580f0d5b8332e491c12918c9bad04.tar.gz
chromium_src-c0222007b5c580f0d5b8332e491c12918c9bad04.tar.bz2
Disable the leak tracking of URLRequests.
This doesn't fix anything, it just prevents asserting (and consequently crashing) when the leak is observed, restoring the earlier behavior. There are already a couple of know leaks, so crashing during shutdown isn't real useful until the known issues are fixed. BUG=18372,23284 TBR=darin Review URL: http://codereview.chromium.org/255017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/leak_tracker.h')
-rw-r--r--base/leak_tracker.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/base/leak_tracker.h b/base/leak_tracker.h
index 9084f9a..de6ff29 100644
--- a/base/leak_tracker.h
+++ b/base/leak_tracker.h
@@ -5,16 +5,8 @@
#ifndef BASE_LEAK_TRACKER_H_
#define BASE_LEAK_TRACKER_H_
-// Temporarily enable LeakTracker in all builds (both
-// release and debug). This will have an impact on performance, but
-// is intended to help track down a leak which reproduces on dev
-// channel.
-//
-// TODO(eroman): Restore the old code which only enabled LeakTracker
-// for debug builds.
-//
-// http://crbug.com/21199, http://crbug.com/18372
-#ifndef ENABLE_LEAK_TRACKER
+// Only enable leak tracking in debug builds.
+#ifndef NDEBUG
#define ENABLE_LEAK_TRACKER
#endif