Index: remoting/host/plugin/host_plugin_utils.cc |
diff --git a/remoting/host/plugin/host_plugin_utils.cc b/remoting/host/plugin/host_plugin_utils.cc |
index 1c09327d9bfdb6c7b2308000514e9e3d0f677ec5..c1682c4b8f1425986dfbf00ab07a5926927f8c0e 100644 |
--- a/remoting/host/plugin/host_plugin_utils.cc |
+++ b/remoting/host/plugin/host_plugin_utils.cc |
@@ -42,6 +42,11 @@ NPObject* ObjectFromNPVariant(const NPVariant& variant) { |
ScopedRefNPObject::ScopedRefNPObject() : object_(NULL) { } |
+ScopedRefNPObject::ScopedRefNPObject(NPObject* object) |
+ : object_(NULL) { |
+ *this = object; |
+} |
+ |
ScopedRefNPObject::~ScopedRefNPObject() { |
*this = NULL; |
} |