Index: ipc/mach_port_mac.cc |
diff --git a/ipc/mach_port_mac.cc b/ipc/mach_port_mac.cc |
index 51a5bd7abfcb0822363e5538bf4a159675262d72..e93fa04e24d5c6b7ae2c31aef9c1c95e07447bba 100644 |
--- a/ipc/mach_port_mac.cc |
+++ b/ipc/mach_port_mac.cc |
@@ -12,7 +12,7 @@ |
namespace IPC { |
// static |
-void ParamTraits<MachPortMac>::Write(Message* m, const param_type& p) { |
+void ParamTraits<MachPortMac>::Write(base::Pickle* m, const param_type& p) { |
if (!m->WriteAttachment( |
new IPC::internal::MachPortAttachmentMac(p.get_mach_port()))) { |
NOTREACHED(); |
@@ -20,12 +20,14 @@ void ParamTraits<MachPortMac>::Write(Message* m, const param_type& p) { |
} |
// static |
-bool ParamTraits<MachPortMac>::Read(const Message* m, |
+bool ParamTraits<MachPortMac>::Read(const base::Pickle* m, |
base::PickleIterator* iter, |
param_type* r) { |
- scoped_refptr<MessageAttachment> attachment; |
- if (!m->ReadAttachment(iter, &attachment)) |
+ scoped_refptr<base::Pickle::Attachment> base_attachment; |
+ if (!m->ReadAttachment(iter, &base_attachment)) |
return false; |
+ scoped_refptr<MessageAttachment> attachment = make_scoped_refptr( |
+ static_cast<MessageAttachment*>(base_attachment.get())); |
if (attachment->GetType() != MessageAttachment::TYPE_BROKERABLE_ATTACHMENT) |
return false; |
BrokerableAttachment* brokerable_attachment = |