summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 19:23:54 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 19:23:54 +0000
commit51d5e16054c2e9c64e9357c171166f8bda6f5af5 (patch)
tree52e1ee64eb26c00eca266cf752819f7e93e5b428
parentcc661e5f76c24a8640dbe818a1091e0fe60e1529 (diff)
downloadchromium_src-51d5e16054c2e9c64e9357c171166f8bda6f5af5.zip
chromium_src-51d5e16054c2e9c64e9357c171166f8bda6f5af5.tar.gz
chromium_src-51d5e16054c2e9c64e9357c171166f8bda6f5af5.tar.bz2
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
-rw-r--r--chrome/common/logging_chrome.cc10
1 files changed, 10 insertions, 0 deletions
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;