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

Unified Diff: ipc/ipc_message.cc

Issue 2768403002: Revert of Add enable_ipc_logging build argument (Closed)
Patch Set: Created 3 years, 9 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_message.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message.cc
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index f66b4fe882c60abfdf1038a8b47cef01786449f6..f5e9ac7a8b807cd04842aa8139a5b9b8cfb0b9ee 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -82,7 +82,7 @@
void Message::Init() {
dispatch_error_ = false;
-#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#ifdef IPC_MESSAGE_LOG_ENABLED
received_time_ = 0;
dont_log_ = false;
log_data_ = NULL;
@@ -109,7 +109,7 @@
attachment_set_ = new MessageAttachmentSet;
}
-#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#ifdef IPC_MESSAGE_LOG_ENABLED
void Message::set_sent_time(int64_t time) {
DCHECK((header()->flags & HAS_SENT_TIME_BIT) == 0);
header()->flags |= HAS_SENT_TIME_BIT;
@@ -128,7 +128,7 @@
void Message::set_received_time(int64_t time) const {
received_time_ = time;
}
-#endif // BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#endif
Message::NextMessageInfo::NextMessageInfo()
: message_size(0), message_found(false), pickle_end(nullptr),
« no previous file with comments | « ipc/ipc_message.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698