| Index: ipc/ipc_channel_proxy.cc
|
| diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
|
| index dcc66aad88751005af28256a5cd93947e6f420e5..5b9083badfde6fdbf981c9f6cbe16c2d88ed10c9 100644
|
| --- a/ipc/ipc_channel_proxy.cc
|
| +++ b/ipc/ipc_channel_proxy.cc
|
| @@ -70,7 +70,7 @@ ChannelProxy::Context::Context(Channel::Listener* listener,
|
| peer_pid_(0),
|
| channel_connected_called_(false) {
|
| if (filter)
|
| - filters_.push_back(filter);
|
| + filters_.push_back(make_scoped_refptr(filter));
|
| }
|
|
|
| void ChannelProxy::Context::CreateChannel(const std::string& id,
|
| @@ -190,7 +190,7 @@ void ChannelProxy::Context::OnSendMessage(Message* message) {
|
|
|
| // Called on the IPC::Channel thread
|
| void ChannelProxy::Context::OnAddFilter(MessageFilter* filter) {
|
| - filters_.push_back(filter);
|
| + filters_.push_back(make_scoped_refptr(filter));
|
|
|
| // If the channel has already been created, then we need to send this message
|
| // so that the filter gets access to the Channel.
|
|
|