Index: chrome/common/logging_chrome.cc |
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc |
index be0ddffa1c533bd6c7ab46dd284cb54349a14752..a0b53f09c8dfc70380d936a1904374766f5f56ff 100644 |
--- a/chrome/common/logging_chrome.cc |
+++ b/chrome/common/logging_chrome.cc |
@@ -358,13 +358,10 @@ void InitChromeLogging(const CommandLine& command_line, |
logging::LogEventProvider::Initialize(kChromeTraceProviderName); |
#endif |
-#ifdef NDEBUG |
- if (command_line.HasSwitch(switches::kSilentDumpOnDCHECK) && DCHECK_IS_ON()) { |
-#if defined(OS_WIN) |
+#if DCHECK_IS_ON && defined(NDEBUG) && defined(OS_WIN) |
+ if (command_line.HasSwitch(switches::kSilentDumpOnDCHECK)) |
logging::SetLogReportHandler(DumpProcessAssertHandler); |
#endif |
- } |
-#endif // NDEBUG |
chrome_logging_initialized_ = true; |
} |