diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-22 23:05:03 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-22 23:05:03 +0000 |
commit | d5f5dc1eb49e5daa5c102d356697623b6277e091 (patch) | |
tree | 026c0f084526cf3cb3caec94542c67f1ee0d57ac /ppapi/proxy/ppp_mouse_lock_proxy.cc | |
parent | ecd887823ea735db045236bda63c1984f9f3af1e (diff) | |
download | chromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.zip chromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.tar.gz chromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.tar.bz2 |
Verify we're not getting any plugin messages on the host side of the proxy.
If we start getting plugin messages on the host side, we could get confused.
BUG=159708
Review URL: https://codereview.chromium.org/12051024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppp_mouse_lock_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppp_mouse_lock_proxy.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ppapi/proxy/ppp_mouse_lock_proxy.cc b/ppapi/proxy/ppp_mouse_lock_proxy.cc index e4cd039..6fd746d 100644 --- a/ppapi/proxy/ppp_mouse_lock_proxy.cc +++ b/ppapi/proxy/ppp_mouse_lock_proxy.cc @@ -66,6 +66,9 @@ const InterfaceProxy::Info* PPP_MouseLock_Proxy::GetInfo() { } bool PPP_MouseLock_Proxy::OnMessageReceived(const IPC::Message& msg) { + if (!dispatcher()->IsPlugin()) + return false; + bool handled = true; IPC_BEGIN_MESSAGE_MAP(PPP_MouseLock_Proxy, msg) IPC_MESSAGE_HANDLER(PpapiMsg_PPPMouseLock_MouseLockLost, |