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

Unified Diff: ppapi/proxy/ppp_class_proxy.cc

Issue 10678007: Invoke PluginImplementedObjectDestroyed for ppp_class deallocate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove object from global list before Deallocate Created 8 years, 6 months 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 | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_class_proxy.cc
diff --git a/ppapi/proxy/ppp_class_proxy.cc b/ppapi/proxy/ppp_class_proxy.cc
index 35f55d65dba6e3222fc52da07e6e7f030a662af8..8d44a9047c455ef75b9bd9571a5c03e8257b20c1 100644
--- a/ppapi/proxy/ppp_class_proxy.cc
+++ b/ppapi/proxy/ppp_class_proxy.cc
@@ -341,6 +341,8 @@ void PPP_Class_Proxy::OnMsgConstruct(
void PPP_Class_Proxy::OnMsgDeallocate(int64 ppp_class, int64 object) {
if (!ValidateUserData(ppp_class, object, NULL))
return;
+ PluginGlobals::Get()->plugin_var_tracker()->PluginImplementedObjectDestroyed(
+ ToUserData(object));
CallWhileUnlocked(ToPPPClass(ppp_class)->Deallocate, ToUserData(object));
}
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698