From 51d5e16054c2e9c64e9357c171166f8bda6f5af5 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 27 Jul 2009 19:23:54 +0000 Subject: posix: restore IPC logging In the recent refactoring of IPC, it appears logging on POSIX was lost. The file modified here later checks an #ifdef that is set by the now-included ipc_message.h to set up POSIX logging. Review URL: http://codereview.chromium.org/159418 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21679 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/logging_chrome.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc index 3bcfd23..6e63a33 100644 --- a/chrome/common/logging_chrome.cc +++ b/chrome/common/logging_chrome.cc @@ -24,6 +24,16 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/env_vars.h" +#include "ipc/ipc_message.h" + +// On Windows, the about:ipc dialog shows IPCs; on POSIX, we hook up a +// logger in this file. +#if defined(OS_POSIX) && defined(IPC_MESSAGE_LOG_ENABLED) +#define IPC_MESSAGE_MACROS_LOG_ENABLED +#include "ipc/ipc_logging.h" +#include "chrome/common/plugin_messages.h" +#include "chrome/common/render_messages.h" +#endif // When true, this means that error dialogs should not be shown. static bool dialogs_are_suppressed_ = false; -- cgit v1.1