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

Unified Diff: ipc/ipc_message.cc

Issue 2847003005: Reland "Add enable_ipc_logging build argument" (Closed)
Patch Set: Reland "Add enable_ipc_logging build argument" Created 3 years, 7 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 f5e9ac7a8b807cd04842aa8139a5b9b8cfb0b9ee..f66b4fe882c60abfdf1038a8b47cef01786449f6 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -82,7 +82,7 @@ Message::Message(const Message& other) : base::Pickle(other) {
void Message::Init() {
dispatch_error_ = false;
-#ifdef IPC_MESSAGE_LOG_ENABLED
+#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
received_time_ = 0;
dont_log_ = false;
log_data_ = NULL;
@@ -109,7 +109,7 @@ void Message::EnsureMessageAttachmentSet() {
attachment_set_ = new MessageAttachmentSet;
}
-#ifdef IPC_MESSAGE_LOG_ENABLED
+#if BUILDFLAG(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 @@ int64_t Message::sent_time() const {
void Message::set_received_time(int64_t time) const {
received_time_ = time;
}
-#endif
+#endif // BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
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