diff options
Diffstat (limited to 'ppapi/proxy/ppb_broker_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_broker_proxy.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_broker_proxy.cc b/ppapi/proxy/ppb_broker_proxy.cc index f7818dc..4e19b66 100644 --- a/ppapi/proxy/ppb_broker_proxy.cc +++ b/ppapi/proxy/ppb_broker_proxy.cc @@ -147,6 +147,8 @@ bool PPB_Broker_Proxy::OnMessageReceived(const IPC::Message& msg) { void PPB_Broker_Proxy::OnMsgCreate(PP_Instance instance, HostResource* result_resource) { + if (!dispatcher()->permissions().HasPermission(PERMISSION_PRIVATE)) + return; thunk::EnterResourceCreation enter(instance); if (enter.succeeded()) { result_resource->SetHostResource( @@ -156,6 +158,8 @@ void PPB_Broker_Proxy::OnMsgCreate(PP_Instance instance, } void PPB_Broker_Proxy::OnMsgConnect(const HostResource& broker) { + if (!dispatcher()->permissions().HasPermission(PERMISSION_PRIVATE)) + return; EnterHostFromHostResourceForceCallback<PPB_Broker_API> enter( broker, callback_factory_, &PPB_Broker_Proxy::ConnectCompleteInHost, broker); |