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"