| Index: chrome/common/logging_chrome.cc
|
| diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
|
| index c607f2194d275b318f02c42afca8a26fc556b2f2..f8418ac4c6dab6ae95b009b98acf3172a3b8525e 100644
|
| --- a/chrome/common/logging_chrome.cc
|
| +++ b/chrome/common/logging_chrome.cc
|
| @@ -262,10 +262,16 @@ void InitChromeLogging(const CommandLine& command_line,
|
| delete_old_log_file = logging::APPEND_TO_OLD_LOG_FILE;
|
| #endif
|
|
|
| + logging::DcheckState dcheck_state =
|
| + command_line.HasSwitch(switches::kEnableDCHECK) ?
|
| + logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS :
|
| + logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS;
|
| +
|
| bool success = InitLogging(log_path.value().c_str(),
|
| DetermineLogMode(command_line),
|
| logging::LOCK_LOG_FILE,
|
| - delete_old_log_file);
|
| + delete_old_log_file,
|
| + dcheck_state);
|
|
|
| #if defined(OS_CHROMEOS)
|
| if (!success) {
|
|
|