Index: chrome/common/logging_chrome.cc |
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc |
index e9e51b130ea2b85aa63275000f81fbe022f939cd..4dd500cd7444cb8ee4dfdc0fb037af8226976304 100644 |
--- a/chrome/common/logging_chrome.cc |
+++ b/chrome/common/logging_chrome.cc |
@@ -92,7 +92,9 @@ const GUID kChromeTraceProviderName = { |
// silenced. To record a new error, pass the log string associated |
// with that error in the str parameter. |
MSVC_DISABLE_OPTIMIZE(); |
-void SilentRuntimeAssertHandler(const std::string& str) { |
+void SilentRuntimeAssertHandler( |
+ const char* file, int line, |
+ const std::string& message, const std::string& stack_trace) { |
base::debug::BreakDebugger(); |
} |
MSVC_ENABLE_OPTIMIZE(); |
@@ -103,7 +105,7 @@ void SuppressDialogs() { |
if (dialogs_are_suppressed_) |
return; |
- logging::SetLogAssertHandler(SilentRuntimeAssertHandler); |
+ logging::PushLogAssertHandler(base::Bind(SilentRuntimeAssertHandler)); |
#if defined(OS_WIN) |
UINT new_flags = SEM_FAILCRITICALERRORS | |