summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_file_ref_proxy.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 04:48:30 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 04:48:30 +0000
commit51e1aec0a2197056f0e26e05a88819b611d65cdb (patch)
tree81ee2d6dd3a89795df971a1469bdaaa888d5734d /ppapi/proxy/ppb_file_ref_proxy.cc
parentb9f246772a6cb2e64958d9e9d626b3734746fbf9 (diff)
downloadchromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.zip
chromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.tar.gz
chromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.tar.bz2
Convert the PluginResource to be refcounted.
This is to make the future transition to a shared resource tracker (which will use refcounted resources) easier. There should be no behavior change. Review URL: http://codereview.chromium.org/7608030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_file_ref_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_file_ref_proxy.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/proxy/ppb_file_ref_proxy.cc b/ppapi/proxy/ppb_file_ref_proxy.cc
index 5e4b706..d94a3f2 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,