Index: ipc/attachment_broker_privileged_win.cc |
diff --git a/ipc/attachment_broker_privileged_win.cc b/ipc/attachment_broker_privileged_win.cc |
index a638752f3dfcd7b1465da8613d48d4f61f99bfa9..ec8494091a928c44fba438a66e6600f29e631ced 100644 |
--- a/ipc/attachment_broker_privileged_win.cc |
+++ b/ipc/attachment_broker_privileged_win.cc |
@@ -19,12 +19,12 @@ AttachmentBrokerPrivilegedWin::AttachmentBrokerPrivilegedWin() {} |
AttachmentBrokerPrivilegedWin::~AttachmentBrokerPrivilegedWin() {} |
bool AttachmentBrokerPrivilegedWin::SendAttachmentToProcess( |
- BrokerableAttachment* attachment, |
+ const scoped_refptr<IPC::BrokerableAttachment>& attachment, |
base::ProcessId destination_process) { |
switch (attachment->GetBrokerableType()) { |
case BrokerableAttachment::WIN_HANDLE: { |
const internal::HandleAttachmentWin* handle_attachment = |
- static_cast<const internal::HandleAttachmentWin*>(attachment); |
+ static_cast<const internal::HandleAttachmentWin*>(attachment.get()); |
HandleWireFormat wire_format = |
handle_attachment->GetWireFormat(destination_process); |
HandleWireFormat new_wire_format = |