Index: base/logging.cc |
diff --git a/base/logging.cc b/base/logging.cc |
index 7ddbe15ef960a0fb38b8830204db052abadec911..cc9c7db8104b6e434aba1180ef624034da032b09 100644 |
--- a/base/logging.cc |
+++ b/base/logging.cc |
@@ -228,7 +228,8 @@ void InitLogMutex() { |
void InitLogging(const PathChar* new_log_file, LoggingDestination logging_dest, |
LogLockingState lock_log, OldFileDeletionState delete_old) { |
- g_enable_dcheck = CommandLine().HasSwitch(switches::kEnableDCHECK); |
+ g_enable_dcheck = |
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableDCHECK); |
if (log_file) { |
// calling InitLogging twice or after some log call has already opened the |