| Index: ipc/handle_win.cc
|
| diff --git a/ipc/handle_win.cc b/ipc/handle_win.cc
|
| index f964c8320570c3171157ee907cc5206cc7862df6..60fa54c7cd1643cd08a3ed8093ab7d02d4f4e7b7 100644
|
| --- a/ipc/handle_win.cc
|
| +++ b/ipc/handle_win.cc
|
| @@ -21,7 +21,7 @@ HandleWin::HandleWin(const HANDLE& handle, Permissions permissions)
|
| : handle_(handle), permissions_(permissions) {}
|
|
|
| // static
|
| -void ParamTraits<HandleWin>::Write(Message* m, const param_type& p) {
|
| +void ParamTraits<HandleWin>::Write(base::Pickle* m, const param_type& p) {
|
| scoped_refptr<IPC::internal::HandleAttachmentWin> attachment(
|
| new IPC::internal::HandleAttachmentWin(p.get_handle(),
|
| p.get_permissions()));
|
| @@ -30,16 +30,18 @@ void ParamTraits<HandleWin>::Write(Message* m, const param_type& p) {
|
| }
|
|
|
| // static
|
| -bool ParamTraits<HandleWin>::Read(const Message* m,
|
| +bool ParamTraits<HandleWin>::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;
|
| + MessageAttachment* attachment =
|
| + static_cast<MessageAttachment*>(base_attachment.get());
|
| if (attachment->GetType() != MessageAttachment::TYPE_BROKERABLE_ATTACHMENT)
|
| return false;
|
| BrokerableAttachment* brokerable_attachment =
|
| - static_cast<BrokerableAttachment*>(attachment.get());
|
| + static_cast<BrokerableAttachment*>(attachment);
|
| if (brokerable_attachment->GetBrokerableType() !=
|
| BrokerableAttachment::WIN_HANDLE) {
|
| return false;
|
|
|