Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ppapi / proxy / plugin_dispatcher.cc
index f6448d3..ad3e7a0 100644 (file)
@@ -108,13 +108,8 @@ PluginDispatcher* PluginDispatcher::GetForResource(const Resource* resource) {
 
 // static
 const void* PluginDispatcher::GetBrowserInterface(const char* interface_name) {
-  if (!interface_name) {
-    DLOG(WARNING) << "|interface_name| is null. Did you forget to add "
-        "the |interface_name()| template function to the interface's C++ "
-        "wrapper?";
-    return NULL;
-  }
-
+  // CAUTION: This function is called directly from the plugin, but we *don't*
+  // lock the ProxyLock to avoid excessive locking from C++ wrappers.
   return InterfaceList::GetInstance()->GetInterfaceForPPB(interface_name);
 }