Index: ppapi/proxy/ppb_testing_proxy.cc |
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc |
index c52528b612e5683be1c5d639439dbe2885cc61ee..167a91e843bb09789a1fcafe48a44d53668d3912 100644 |
--- a/ppapi/proxy/ppb_testing_proxy.cc |
+++ b/ppapi/proxy/ppb_testing_proxy.cc |
@@ -156,6 +156,9 @@ const InterfaceProxy::Info* PPB_Testing_Proxy::GetInfo() { |
} |
bool PPB_Testing_Proxy::OnMessageReceived(const IPC::Message& msg) { |
+ if (!dispatcher()->permissions().HasPermission(PERMISSION_TESTING)) |
bbudge
2012/12/07 22:23:41
Should we also allow this for the 'DEV' permission
|
+ return false; |
+ |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(PPB_Testing_Proxy, msg) |
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBTesting_ReadImageData, |