Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Unified Diff: chrome/browser/lifetime/keep_alive_registry.cc

Issue 1885933002: Ensure that DLOG(FATAL) also asserts in release-with-asserts builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment with installer fix Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/lifetime/keep_alive_registry.h ('k') | chrome/browser/lifetime/keep_alive_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/lifetime/keep_alive_registry.cc
diff --git a/chrome/browser/lifetime/keep_alive_registry.cc b/chrome/browser/lifetime/keep_alive_registry.cc
index 270005ab25d3d80a74d595e6a811638239b2c808..7a749b08223ce4bf237886ee037ff90613f7f476 100644
--- a/chrome/browser/lifetime/keep_alive_registry.cc
+++ b/chrome/browser/lifetime/keep_alive_registry.cc
@@ -113,7 +113,7 @@ void KeepAliveRegistry::OnRestartAllowedChanged(bool new_restart_allowed) {
OnKeepAliveRestartStateChanged(new_restart_allowed));
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
std::ostream& operator<<(std::ostream& out, const KeepAliveRegistry& registry) {
out << "{registered_count_=" << registry.registered_count_
<< ", restart_allowed_count_=" << registry.restart_allowed_count_
@@ -127,4 +127,4 @@ std::ostream& operator<<(std::ostream& out, const KeepAliveRegistry& registry) {
out << "]}";
return out;
}
-#endif // ndef NDEBUG
+#endif
« no previous file with comments | « chrome/browser/lifetime/keep_alive_registry.h ('k') | chrome/browser/lifetime/keep_alive_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698