Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index 4c231deda83f1e105563fbe824e2b7dd8ec2b451..9d5c7187cec6a464ca5f7b08d6137660d5b27bee 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -413,7 +413,7 @@ void ChildThreadImpl::Init(const Options& options) { |
g_lazy_tls.Pointer()->Set(this); |
on_channel_error_called_ = false; |
message_loop_ = base::MessageLoop::current(); |
-#ifdef IPC_MESSAGE_LOG_ENABLED |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
// We must make sure to instantiate the IPC Logger *before* we create the |
// channel, otherwise we can get a callback on the IO thread which creates |
// the logger, and the logger does not like being created on the IO thread. |
@@ -423,7 +423,7 @@ void ChildThreadImpl::Init(const Options& options) { |
channel_ = |
IPC::SyncChannel::Create(this, ChildProcess::current()->io_task_runner(), |
ChildProcess::current()->GetShutDownEvent()); |
-#ifdef IPC_MESSAGE_LOG_ENABLED |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
if (!IsInBrowserProcess()) |
IPC::Logging::GetInstance()->SetIPCSender(this); |
#endif |
@@ -554,7 +554,7 @@ void ChildThreadImpl::Init(const Options& options) { |
} |
ChildThreadImpl::~ChildThreadImpl() { |
-#ifdef IPC_MESSAGE_LOG_ENABLED |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
IPC::Logging::GetInstance()->SetIPCSender(NULL); |
#endif |
@@ -680,7 +680,7 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(ChildThreadImpl, msg) |
IPC_MESSAGE_HANDLER(ChildProcessMsg_Shutdown, OnShutdown) |
-#if defined(IPC_MESSAGE_LOG_ENABLED) |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
IPC_MESSAGE_HANDLER(ChildProcessMsg_SetIPCLoggingEnabled, |
OnSetIPCLoggingEnabled) |
#endif |
@@ -747,7 +747,7 @@ void ChildThreadImpl::OnShutdown() { |
base::MessageLoop::current()->QuitWhenIdle(); |
} |
-#if defined(IPC_MESSAGE_LOG_ENABLED) |
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
void ChildThreadImpl::OnSetIPCLoggingEnabled(bool enable) { |
if (enable) |
IPC::Logging::GetInstance()->Enable(); |