diff options
Diffstat (limited to 'ppapi/proxy/host_dispatcher.cc')
-rw-r--r-- | ppapi/proxy/host_dispatcher.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc index 0e821db..ee7e919 100644 --- a/ppapi/proxy/host_dispatcher.cc +++ b/ppapi/proxy/host_dispatcher.cc @@ -224,7 +224,10 @@ const void* HostDispatcher::GetProxiedInterface(const std::string& iface_name) { // Need to query. Cache the result so we only do this once. bool supported = false; - Send(new PpapiMsg_IsInterfaceSupported(iface_name, &supported)); + bool previous_reentrancy_value = allow_plugin_reentrancy_; + allow_plugin_reentrancy_ = true; + Send(new PpapiMsg_SupportsInterface(iface_name, &supported)); + allow_plugin_reentrancy_ = previous_reentrancy_value; std::pair<PluginSupportedMap::iterator, bool> iter_success_pair; iter_success_pair = plugin_supported_.insert( @@ -271,11 +274,6 @@ void HostDispatcher::OnHostMsgLogWithSource(PP_Instance instance, } } -void HostDispatcher::OnHostMsgPluginSupportsInterface( - const std::string& interface_name) { - plugin_supported_[interface_name] = true; -} - // ScopedModuleReference ------------------------------------------------------- ScopedModuleReference::ScopedModuleReference(Dispatcher* dispatcher) |