Index: components/nacl/loader/nacl_listener.cc |
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc |
index defd931e654e9abc9d5ba8fd60042d9adaef8628..9bbb6d9a0e747dc8c6aef30ca33878ed71580099 100644 |
--- a/components/nacl/loader/nacl_listener.cc |
+++ b/components/nacl/loader/nacl_listener.cc |
@@ -262,8 +262,7 @@ void NaClListener::Listen() { |
switches::kProcessChannelID); |
channel_ = IPC::SyncChannel::Create(this, io_thread_.task_runner().get(), |
&shutdown_event_); |
- filter_ = new IPC::SyncMessageFilter(&shutdown_event_); |
- channel_->AddFilter(filter_.get()); |
+ filter_ = channel_->CreateSyncMessageFilter(); |
channel_->AddFilter(new FileTokenMessageFilter()); |
channel_->Init(channel_name, IPC::Channel::MODE_CLIENT, true); |
main_loop_ = base::MessageLoop::current(); |