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

Unified Diff: webkit/plugins/ppapi/resource_tracker_unittest.cc

Issue 7578001: Unify var tracking between webkit and the proxy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « webkit/plugins/ppapi/resource_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/resource_tracker_unittest.cc
===================================================================
--- webkit/plugins/ppapi/resource_tracker_unittest.cc (revision 96002)
+++ webkit/plugins/ppapi/resource_tracker_unittest.cc (working copy)
@@ -216,14 +216,15 @@
}
// Remove both of the refs we made above.
- tracker().UnrefVar(static_cast<int32_t>(pp_object2.value.as_id));
- tracker().UnrefVar(static_cast<int32_t>(pp_object1.value.as_id));
+ ::ppapi::VarTracker* var_tracker = tracker().GetVarTracker();
+ var_tracker->ReleaseVar(static_cast<int32_t>(pp_object2.value.as_id));
+ var_tracker->ReleaseVar(static_cast<int32_t>(pp_object1.value.as_id));
// Releasing the resource should free the internal ref, and so making a new
// one now should generate a new ID.
PP_Var pp_object3 = NPObjectToPPVar(instance(), npobject.get());
EXPECT_NE(pp_object1.value.as_id, pp_object3.value.as_id);
- tracker().UnrefVar(static_cast<int32_t>(pp_object3.value.as_id));
+ var_tracker->ReleaseVar(static_cast<int32_t>(pp_object3.value.as_id));
}
} // namespace ppapi
« no previous file with comments | « webkit/plugins/ppapi/resource_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698