Index: chrome/common/logging_chrome.cc |
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc |
index 66a49cfceea7fdf03ed48ef86f93e8f00390ca1a..3bcfd23d943f7c2336047209739922531bfc5702 100644 |
--- a/chrome/common/logging_chrome.cc |
+++ b/chrome/common/logging_chrome.cc |
@@ -72,6 +72,10 @@ void InitChromeLogging(const CommandLine& command_line, |
DCHECK(!chrome_logging_initialized_) << |
"Attempted to initialize logging when it was already initialized."; |
+#if defined(OS_POSIX) && defined(IPC_MESSAGE_LOG_ENABLED) |
+ IPC::Logging::SetLoggerFunctions(g_log_function_mapping); |
+#endif |
+ |
// only use OutputDebugString in debug mode |
#ifdef NDEBUG |
bool enable_logging = false; |