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

Unified Diff: ppapi/proxy/ppb_file_ref_proxy.cc

Issue 7608030: Convert the PluginResource to be refcounted. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
Index: ppapi/proxy/ppb_file_ref_proxy.cc
diff --git a/ppapi/proxy/ppb_file_ref_proxy.cc b/ppapi/proxy/ppb_file_ref_proxy.cc
index 5e4b706bef4aa8a4b4f86238dbdd4b3f261d892d..d94a3f27cc6d1733fa7f8ac6dad2ebcd143d150a 100644
--- a/ppapi/proxy/ppb_file_ref_proxy.cc
+++ b/ppapi/proxy/ppb_file_ref_proxy.cc
@@ -228,8 +228,8 @@ PP_Resource PPB_FileRef_Proxy::DeserializeFileRef(
if (serialized.resource.is_null())
return 0; // Resource invalid.
- linked_ptr<FileRef> object(new FileRef(serialized));
- return PluginResourceTracker::GetInstance()->AddResource(object);
+ return PluginResourceTracker::GetInstance()->AddResource(
+ new FileRef(serialized));
}
void PPB_FileRef_Proxy::OnMsgCreate(const HostResource& file_system,

Powered by Google App Engine
This is Rietveld 408576698