summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/win_util.cc2
-rw-r--r--base/win_util.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/base/win_util.cc b/base/win_util.cc
index e18007b..8373f4c 100644
--- a/base/win_util.cc
+++ b/base/win_util.cc
@@ -407,7 +407,7 @@ void NotifyHWNDDestruction(const tracked_objects::Location& from_here,
birth_iter->second.Write(true, true, &allocation);
death_iter->second.Write(true, true, &first_delete);
from_here.Write(true, true, &second_delete);
- NOTREACHED() << "Double delete of an HWND. Please file a bug with info on "
+ LOG(FATAL) << "Double delete of an HWND. Please file a bug with info on "
"how you got that assertion and the following information:\n"
"Double delete of HWND 0x" << hwnd << "\n" <<
"Allocated at " << allocation << "\n" <<
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