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

Unified Diff: chrome/common/ipc_message.cc

Issue 20027: Capability: passing fds over IPC (Closed)
Patch Set: ... Created 11 years, 10 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 | « chrome/common/ipc_message.h ('k') | chrome/common/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/ipc_message.cc
diff --git a/chrome/common/ipc_message.cc b/chrome/common/ipc_message.cc
index fe6142388d9b85e914996e61a7e00a133e4e7231..67dfad88077b138334ed99062a22af04c75b245b 100644
--- a/chrome/common/ipc_message.cc
+++ b/chrome/common/ipc_message.cc
@@ -5,6 +5,7 @@
#include "chrome/common/ipc_message.h"
#include "base/logging.h"
+#include "build/build_config.h"
namespace IPC {
@@ -16,6 +17,9 @@ Message::~Message() {
Message::Message()
: Pickle(sizeof(Header)) {
header()->routing = header()->type = header()->flags = 0;
+#if defined(OS_POSIX)
+ header()->num_fds = 0;
+#endif
InitLoggingVariables();
}
@@ -24,6 +28,9 @@ Message::Message(int32 routing_id, uint16 type, PriorityValue priority)
header()->routing = routing_id;
header()->type = type;
header()->flags = priority;
+#if defined(OS_POSIX)
+ header()->num_fds = 0;
+#endif
InitLoggingVariables();
}
« no previous file with comments | « chrome/common/ipc_message.h ('k') | chrome/common/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698