Index: ipc/handle_attachment_win.cc |
diff --git a/ipc/handle_attachment_win.cc b/ipc/handle_attachment_win.cc |
index 994b22dddca2e90df60db91ca1df906cdc6ea153..50e3e6dab24310c5bba54d5f44cfa42cb436630e 100644 |
--- a/ipc/handle_attachment_win.cc |
+++ b/ipc/handle_attachment_win.cc |
@@ -9,17 +9,20 @@ |
namespace IPC { |
namespace internal { |
-HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle) |
- : handle_(handle) { |
-} |
+HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle, |
+ HandleWin::Permissions permissions) |
+ : handle_(handle), permissions_(permissions) {} |
HandleAttachmentWin::HandleAttachmentWin(const WireFormat& wire_format) |
: BrokerableAttachment(wire_format.attachment_id, false), |
- handle_(LongToHandle(wire_format.handle)) {} |
+ handle_(LongToHandle(wire_format.handle)), |
+ permissions_(wire_format.permissions) {} |
HandleAttachmentWin::HandleAttachmentWin( |
const BrokerableAttachment::AttachmentId& id) |
- : BrokerableAttachment(id, true), handle_(INVALID_HANDLE_VALUE) {} |
+ : BrokerableAttachment(id, true), |
+ handle_(INVALID_HANDLE_VALUE), |
+ permissions_(HandleWin::INVALID) {} |
HandleAttachmentWin::~HandleAttachmentWin() { |
} |
@@ -48,6 +51,7 @@ HandleAttachmentWin::WireFormat HandleAttachmentWin::GetWireFormat( |
format.handle = HandleToLong(handle_); |
format.attachment_id = GetIdentifier(); |
format.destination_process = destination; |
+ format.permissions = permissions_; |
return format; |
} |