OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 // Need to include this before most other files because it defines | 7 // Need to include this before most other files because it defines |
8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define | 8 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define |
9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the | 9 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the |
10 // ViewMsgLog et al. functions. | 10 // ViewMsgLog et al. functions. |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 DLOG(WARNING) << "Bad log level: " << log_level; | 352 DLOG(WARNING) << "Bad log level: " << log_level; |
353 } | 353 } |
354 } | 354 } |
355 | 355 |
356 #if defined(OS_WIN) | 356 #if defined(OS_WIN) |
357 // Enable trace control and transport through event tracing for Windows. | 357 // Enable trace control and transport through event tracing for Windows. |
358 logging::LogEventProvider::Initialize(kChromeTraceProviderName); | 358 logging::LogEventProvider::Initialize(kChromeTraceProviderName); |
359 #endif | 359 #endif |
360 | 360 |
361 #ifdef NDEBUG | 361 #ifdef NDEBUG |
362 if (command_line.HasSwitch(switches::kSilentDumpOnDCHECK) && DCHECK_IS_ON()) { | 362 if (command_line.HasSwitch(switches::kSilentDumpOnDCHECK) && DCHECK_IS_ON) { |
363 #if defined(OS_WIN) | 363 #if defined(OS_WIN) |
364 logging::SetLogReportHandler(DumpProcessAssertHandler); | 364 logging::SetLogReportHandler(DumpProcessAssertHandler); |
365 #endif | 365 #endif |
366 } | 366 } |
367 #endif // NDEBUG | 367 #endif // NDEBUG |
368 | 368 |
369 chrome_logging_initialized_ = true; | 369 chrome_logging_initialized_ = true; |
370 } | 370 } |
371 | 371 |
372 // This is a no-op, but we'll keep it around in case | 372 // This is a no-op, but we'll keep it around in case |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 time_deets.year, | 442 time_deets.year, |
443 time_deets.month, | 443 time_deets.month, |
444 time_deets.day_of_month, | 444 time_deets.day_of_month, |
445 time_deets.hour, | 445 time_deets.hour, |
446 time_deets.minute, | 446 time_deets.minute, |
447 time_deets.second); | 447 time_deets.second); |
448 return base_path.InsertBeforeExtensionASCII(suffix); | 448 return base_path.InsertBeforeExtensionASCII(suffix); |
449 } | 449 } |
450 | 450 |
451 } // namespace logging | 451 } // namespace logging |
OLD | NEW |