summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_audio_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_audio_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_audio_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_audio_proxy.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/ppapi/proxy/ppb_audio_proxy.cc b/ppapi/proxy/ppb_audio_proxy.cc
index f0db204..9ec3b30 100644
--- a/ppapi/proxy/ppb_audio_proxy.cc
+++ b/ppapi/proxy/ppb_audio_proxy.cc
@@ -178,9 +178,8 @@ PP_Resource PPB_Audio_Proxy::CreateProxyResource(
if (result.is_null())
return 0;
- linked_ptr<Audio> object(new Audio(result, config_id,
- audio_callback, user_data));
- return PluginResourceTracker::GetInstance()->AddResource(object);
+ return PluginResourceTracker::GetInstance()->AddResource(
+ new Audio(result, config_id, audio_callback, user_data));
}
bool PPB_Audio_Proxy::OnMessageReceived(const IPC::Message& msg) {