| Index: ppapi/proxy/ppb_flash_proxy.cc
|
| diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
|
| index a8767f7b0d7737f5f9d9a42e68eb2c5230293c15..c45318cc319395a7cbf9a9198d1e0b1ff819f93e 100644
|
| --- a/ppapi/proxy/ppb_flash_proxy.cc
|
| +++ b/ppapi/proxy/ppb_flash_proxy.cc
|
| @@ -88,6 +88,9 @@ const PPB_Flash_Print_1_0* PPB_Flash_Proxy::GetFlashPrintInterface() {
|
| }
|
|
|
| bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| + if (!dispatcher()->permissions().HasPermission(PERMISSION_FLASH))
|
| + return false;
|
| +
|
| // Prevent the dispatcher from going away during a call to Navigate.
|
| // This must happen OUTSIDE of OnMsgNavigate since the handling code use
|
| // the dispatcher upon return of the function (sending the reply message).
|
|
|