Index: webkit/plugins/ppapi/plugin_object.cc |
diff --git a/webkit/plugins/ppapi/plugin_object.cc b/webkit/plugins/ppapi/plugin_object.cc |
index a5ef5febf5938f65e408f6d989d3256b380abf8b..9b6a1303d31bdc8f740674542675451e8b239274 100644 |
--- a/webkit/plugins/ppapi/plugin_object.cc |
+++ b/webkit/plugins/ppapi/plugin_object.cc |
@@ -298,7 +298,8 @@ PP_Var PluginObject::Create(PluginInstance* instance, |
// WrapperClass_Allocated function which will have created an object wrapper |
// appropriate for this class (derived from NPObject). |
NPObjectWrapper* wrapper = static_cast<NPObjectWrapper*>( |
- WebBindings::createObject(NULL, const_cast<NPClass*>(&wrapper_class))); |
+ WebBindings::createObject(instance->instanceNPP(), |
+ const_cast<NPClass*>(&wrapper_class))); |
// This object will register itself both with the NPObject and with the |
// PluginModule. The NPObject will normally handle its lifetime, and it |