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

Unified Diff: ppapi/proxy/ppb_file_ref_proxy.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 | « ppapi/proxy/ppapi_proxy_test.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_file_ref_proxy.cc
===================================================================
--- ppapi/proxy/ppb_file_ref_proxy.cc (revision 96002)
+++ ppapi/proxy/ppb_file_ref_proxy.cc (working copy)
@@ -75,8 +75,10 @@
}
FileRef::~FileRef() {
- PluginVarTracker::GetInstance()->Release(path_);
- PluginVarTracker::GetInstance()->Release(name_);
+ PluginVarTracker& var_tracker =
+ PluginResourceTracker::GetInstance()->var_tracker();
+ var_tracker.ReleaseVar(path_);
+ var_tracker.ReleaseVar(name_);
}
PPB_FileRef_API* FileRef::AsPPB_FileRef_API() {
@@ -88,12 +90,12 @@
}
PP_Var FileRef::GetName() const {
- PluginVarTracker::GetInstance()->AddRef(name_);
+ PluginResourceTracker::GetInstance()->var_tracker().AddRefVar(name_);
return name_;
}
PP_Var FileRef::GetPath() const {
- PluginVarTracker::GetInstance()->AddRef(path_);
+ PluginResourceTracker::GetInstance()->var_tracker().AddRefVar(path_);
return path_;
}
« no previous file with comments | « ppapi/proxy/ppapi_proxy_test.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698