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_ |