Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: content/common/content_ipc_logging.cc

Issue 2847003005: Reland "Add enable_ipc_logging build argument" (Closed)
Patch Set: Reland "Add enable_ipc_logging build argument" Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/child_process_messages.h ('k') | content/public/browser/browser_ipc_logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_ipc_logging.cc
diff --git a/content/common/content_ipc_logging.cc b/content/common/content_ipc_logging.cc
index 2012f07c3ac6676774d909012591da3fb16b015b..50788e358bcb575d26c548b8ceec996c9cb995c2 100644
--- a/content/common/content_ipc_logging.cc
+++ b/content/common/content_ipc_logging.cc
@@ -2,19 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
-
#include <stdint.h>
-#if defined(IPC_MESSAGE_LOG_ENABLED)
+#include "ipc/ipc_features.h"
+
+#if BUILDFLAG(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 "content/common/all_messages.h"
-#endif
-#if defined(IPC_MESSAGE_LOG_ENABLED)
#include "base/containers/hash_tables.h"
#include "base/lazy_instance.h"
@@ -36,4 +34,4 @@ void RegisterIPCLogger(uint32_t msg_id, LogFunction logger) {
} // content
-#endif
+#endif // BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
« no previous file with comments | « content/common/child_process_messages.h ('k') | content/public/browser/browser_ipc_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698