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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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
Index: webkit/plugins/ppapi/ppb_proxy_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_proxy_impl.cc b/webkit/plugins/ppapi/ppb_proxy_impl.cc
index 1660b71b1f718503149f41784266f5df0148d8b0..630e1e0ef8c798e1468fdcc4268906e45bd2e0e2 100644
--- a/webkit/plugins/ppapi/ppb_proxy_impl.cc
+++ b/webkit/plugins/ppapi/ppb_proxy_impl.cc
@@ -28,10 +28,10 @@ void PluginCrashed(PP_Module module) {
}
PP_Instance GetInstanceForResource(PP_Resource resource) {
- scoped_refptr<Resource> obj(ResourceTracker::Get()->GetResource(resource));
+ ::ppapi::Resource* obj = ResourceTracker::Get()->GetResource(resource);
if (!obj)
return 0;
- return obj->instance()->pp_instance();
+ return obj->pp_instance();
}
void SetReserveInstanceIDCallback(PP_Module module,

Powered by Google App Engine
This is Rietveld 408576698