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 7e8e4203ad32da4ae8803f5547de588aba6da242..3ea245b13dc24afe327fc9076da1d5f4e8caa6a4 100644 |
--- a/content/common/child_process_host_impl.cc |
+++ b/content/common/child_process_host_impl.cc |
@@ -158,7 +158,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 |
@@ -214,7 +214,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); |
@@ -245,7 +245,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 |