Index: content/common/child_process_host_impl.cc |
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc |
index 9689c72d6fb5cc4f98c91389e5c8e26d232f4431..2d5dfa34ed237ff25f58d816f789b6486ba67792 100644 |
--- a/content/common/child_process_host_impl.cc |
+++ b/content/common/child_process_host_impl.cc |
@@ -156,7 +156,7 @@ bool ChildProcessHostImpl::InitChannel() { |
delegate_->OnChannelInitialized(channel_.get()); |
// Make sure these messages get sent first. |
-#if defined(IPC_MESSAGE_LOG_ENABLED) |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
bool enabled = IPC::Logging::GetInstance()->Enabled(); |
Send(new ChildProcessMsg_SetIPCLoggingEnabled(enabled)); |
#endif |
@@ -212,7 +212,7 @@ uint64_t ChildProcessHostImpl::ChildProcessUniqueIdToTracingProcessId( |
} |
bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) { |
-#ifdef IPC_MESSAGE_LOG_ENABLED |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
IPC::Logging* logger = IPC::Logging::GetInstance(); |
if (msg.type() == IPC_LOGGING_ID) { |
logger->OnReceivedLoggingMessage(msg); |
@@ -243,7 +243,7 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) { |
handled = delegate_->OnMessageReceived(msg); |
} |
-#ifdef IPC_MESSAGE_LOG_ENABLED |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
if (logger->Enabled()) |
logger->OnPostDispatchMessage(msg); |
#endif |