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

Unified Diff: ppapi/shared_impl/var.cc

Issue 23809016: [PPAPI] ResourceVar now reference counts its PP_Resource in the plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Windows compile. Created 7 years, 3 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/shared_impl/unittest_utils.cc ('k') | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/var.cc
diff --git a/ppapi/shared_impl/var.cc b/ppapi/shared_impl/var.cc
index 9644a44034cc07a7c0fe7276464cf5ff19757f25..d128d90241a36ef77b6042c029d0c2642a5321c2 100644
--- a/ppapi/shared_impl/var.cc
+++ b/ppapi/shared_impl/var.cc
@@ -71,8 +71,8 @@ std::string Var::PPVarToLogString(PP_Var var) {
if (resource->IsPending()) {
return base::StringPrintf("[Pending resource]");
- } else if (resource->pp_resource()) {
- return base::StringPrintf("[Resource %d]", resource->pp_resource());
+ } else if (resource->GetPPResource()) {
+ return base::StringPrintf("[Resource %d]", resource->GetPPResource());
} else {
return "[Null resource]";
}
« no previous file with comments | « ppapi/shared_impl/unittest_utils.cc ('k') | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698