From aefb5ccce879f308f0bcc3ac719c86defe2f9715 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 12 Jun 2015 13:54:42 -0400 Subject: [PATCH] Fix unknown type when logging IPC messages (issue #963) --- libcef/common/main_delegate.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libcef/common/main_delegate.cc b/libcef/common/main_delegate.cc index 025eb71f3..7e858c06d 100644 --- a/libcef/common/main_delegate.cc +++ b/libcef/common/main_delegate.cc @@ -32,6 +32,16 @@ #include "ui/base/ui_base_paths.h" #include "ui/base/ui_base_switches.h" +#include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. + +#if defined(IPC_MESSAGE_LOG_ENABLED) +#define IPC_MESSAGE_MACROS_LOG_ENABLED +#include "content/public/common/content_ipc_logging.h" +#define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) \ + content::RegisterIPCLogger(msg_id, logger) +#include "libcef/common/cef_message_generator.h" +#endif + #if defined(OS_WIN) #include // NOLINT(build/include_order) #include "base/win/registry.h"