Index: ppapi/proxy/host_dispatcher.cc |
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc |
index f9d347168a7e1a8cbdd2769add83aaef150a5545..21dc269aabb8bdacdbe28fad3cf37e5d31b47376 100644 |
--- a/ppapi/proxy/host_dispatcher.cc |
+++ b/ppapi/proxy/host_dispatcher.cc |
@@ -183,6 +183,11 @@ bool HostDispatcher::OnMessageReceived(const IPC::Message& msg) { |
BoolRestorer restorer(&allow_plugin_reentrancy_); |
allow_plugin_reentrancy_ = false; |
+ for (size_t i = 0; i < filters_.size(); i++) { |
+ if (filters_[i]->OnMessageReceived(msg)) |
+ return true; |
+ } |
+ |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(HostDispatcher, msg) |
IPC_MESSAGE_HANDLER(PpapiHostMsg_LogWithSource, OnHostMsgLogWithSource) |