Index: chrome/browser/profiles/profile_destroyer.cc |
diff --git a/chrome/browser/profiles/profile_destroyer.cc b/chrome/browser/profiles/profile_destroyer.cc |
index 809703f7c4d7fd493ca172876fce4c682836c087..4dbb1a8304b3766b3e5f1df3fd55090f0faa7b9f 100644 |
--- a/chrome/browser/profiles/profile_destroyer.cc |
+++ b/chrome/browser/profiles/profile_destroyer.cc |
@@ -122,12 +122,13 @@ ProfileDestroyer::~ProfileDestroyer() { |
if (profile_) |
DestroyProfileWhenAppropriate(profile_); |
+#ifdef NDEBUG |
// Don't wait for pending registrations, if any, these hosts are buggy. |
// Note: this can happen, but if so, it's better to crash here than wait |
// for the host to dereference a deleted Profile. http://crbug.com/248625 |
CHECK_EQ(0U, num_hosts_) << "Some render process hosts were not " |
<< "destroyed early enough!"; |
- |
+#endif // NDEBUG |
DCHECK(pending_destroyers_ != NULL); |
DestroyerSet::iterator iter = pending_destroyers_->find(this); |
DCHECK(iter != pending_destroyers_->end()); |