From c0222007b5c580f0d5b8332e491c12918c9bad04 Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Wed, 30 Sep 2009 02:42:13 +0000 Subject: 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 --- base/leak_tracker.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'base') 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 -- cgit v1.1