summaryrefslogtreecommitdiffstats
path: root/base/win_util.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 23:26:30 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 23:26:30 +0000
commitd875230d182c69e258f9558ff10a09062712e4e6 (patch)
tree661d3a68a99eb065d40a26e7d5f3f04845c6b212 /base/win_util.h
parent5acdfef617e0c2dd01467420d1469f4ebfb37791 (diff)
downloadchromium_src-d875230d182c69e258f9558ff10a09062712e4e6.zip
chromium_src-d875230d182c69e258f9558ff10a09062712e4e6.tar.gz
chromium_src-d875230d182c69e258f9558ff10a09062712e4e6.tar.bz2
Turning on the tracking of double-delete of HWND in the hope of catching one that would be the cause of the infamous NCDestroy crasher (bug #4714).
Review URL: http://codereview.chromium.org/20269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win_util.h')
-rw-r--r--base/win_util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/base/win_util.h b/base/win_util.h
index f6ce1c2..2af65a4 100644
--- a/base/win_util.h
+++ b/base/win_util.h
@@ -111,14 +111,9 @@ void NotifyHWNDCreation(const tracked_objects::Location& from_here, HWND hwnd);
void NotifyHWNDDestruction(const tracked_objects::Location& from_here,
HWND hwnd);
-#ifdef NDEBUG
-#define TRACK_HWND_CREATION(hwnd)
-#define TRACK_HWND_DESTRUCTION(hwnd)
-#else
#define TRACK_HWND_CREATION(hwnd) win_util::NotifyHWNDCreation(FROM_HERE, hwnd)
#define TRACK_HWND_DESTRUCTION(hwnd) \
win_util::NotifyHWNDDestruction(FROM_HERE, hwnd)
-#endif
} // namespace win_util