Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: content/common/npobject_stub.cc

Issue 8741005: Shim calls to NPN_MemAlloc/MemFree through PluginHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/npobject_proxy.cc ('k') | content/public/common/webkit_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/npobject_stub.cc
diff --git a/content/common/npobject_stub.cc b/content/common/npobject_stub.cc
index c8e16a7c2e488a9d3d6fdad008b701a19eed370c..19474b4b0a4944df707b2f949170d373441a381b 100644
--- a/content/common/npobject_stub.cc
+++ b/content/common/npobject_stub.cc
@@ -14,6 +14,7 @@
#include "third_party/npapi/bindings/npruntime.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
#include "webkit/plugins/npapi/plugin_constants_win.h"
+#include "webkit/plugins/npapi/plugin_host.h"
using WebKit::WebBindings;
@@ -324,7 +325,7 @@ void NPObjectStub::OnEnumeration(std::vector<NPIdentifier_Param>* value,
value->push_back(param);
}
- NPN_MemFree(value_np);
+ webkit::npapi::PluginHost::Singleton()->host_functions()->memfree(value_np);
}
void NPObjectStub::OnConstruct(const std::vector<NPVariant_Param>& args,
« no previous file with comments | « content/common/npobject_proxy.cc ('k') | content/public/common/webkit_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698