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

Unified Diff: ipc/ipc_message.h

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_logging.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message.h
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index 3ca75482b189bb60fa2f163cf933512abfcd57d5..43e9ae39c13d967f7054ac949f7540602df74c8d 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -16,7 +16,10 @@
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "ipc/ipc_export.h"
-#include "ipc/ipc_features.h"
+
+#if !defined(NDEBUG)
+#define IPC_MESSAGE_LOG_ENABLED
+#endif
namespace IPC {
@@ -204,7 +207,7 @@
// Returns true if there are any attachment in this message.
bool HasAttachments() const override;
-#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#ifdef IPC_MESSAGE_LOG_ENABLED
// Adds the outgoing time from Time::Now() at the end of the message and sets
// a bit to indicate that it's been added.
void set_sent_time(int64_t time);
@@ -272,7 +275,7 @@
return attachment_set_.get();
}
-#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
+#ifdef IPC_MESSAGE_LOG_ENABLED
// Used for logging.
mutable int64_t received_time_;
mutable std::string output_params_;
« no previous file with comments | « ipc/ipc_logging.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698