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

Unified Diff: ipc/ipc_logging.h

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 | « ipc/ipc_channel_reader.cc ('k') | ipc/ipc_logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_logging.h
diff --git a/ipc/ipc_logging.h b/ipc/ipc_logging.h
index af490f0c91e7fce1a2f94aab626252fa29e59d81..929f55e50a9c8e1a3f5c01c4e2fd59089a8eb136 100644
--- a/ipc/ipc_logging.h
+++ b/ipc/ipc_logging.h
@@ -5,12 +5,11 @@
#ifndef IPC_IPC_LOGGING_H_
#define IPC_IPC_LOGGING_H_
-#include <stdint.h>
-
-#include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
+#include "ipc/ipc_features.h"
-#ifdef IPC_MESSAGE_LOG_ENABLED
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#include <stdint.h>
#include <vector>
#include "base/containers/hash_tables.h"
@@ -18,6 +17,7 @@
#include "base/memory/singleton.h"
#include "base/single_thread_task_runner.h"
#include "ipc/ipc_export.h"
+#include "ipc/ipc_message.h"
// Logging function. |name| is a string in ASCII and |params| is a string in
// UTF-8.
@@ -123,6 +123,6 @@ class IPC_EXPORT Logging {
} // namespace IPC
-#endif // IPC_MESSAGE_LOG_ENABLED
+#endif // BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
#endif // IPC_IPC_LOGGING_H_
« no previous file with comments | « ipc/ipc_channel_reader.cc ('k') | ipc/ipc_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698