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

Unified Diff: ppapi/proxy/ppb_url_loader_proxy.cc

Issue 8316008: Add a new globals object for PPAPI tracking information. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: ppapi/proxy/ppb_url_loader_proxy.cc
diff --git a/ppapi/proxy/ppb_url_loader_proxy.cc b/ppapi/proxy/ppb_url_loader_proxy.cc
index 70c01e8b15592de338f50d09d6820f757d18e683..2ad302576b85e285e2476479fe70100daab1597f 100644
--- a/ppapi/proxy/ppb_url_loader_proxy.cc
+++ b/ppapi/proxy/ppb_url_loader_proxy.cc
@@ -172,7 +172,7 @@ URLLoader::~URLLoader() {
}
if (response_info_)
- PluginResourceTracker::GetInstance()->ReleaseResource(response_info_);
+ PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(response_info_);
}
PPB_URLLoader_API* URLLoader::AsPPB_URLLoader_API() {
@@ -240,7 +240,7 @@ PP_Resource URLLoader::GetResponseInfo() {
}
// The caller expects to get a ref, and we want to keep holding ours.
- PluginResourceTracker::GetInstance()->AddRefResource(response_info_);
+ PpapiGlobals::Get()->GetResourceTracker()->AddRefResource(response_info_);
return response_info_;
}

Powered by Google App Engine
This is Rietveld 408576698