diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 04:48:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 04:48:30 +0000 |
commit | 51e1aec0a2197056f0e26e05a88819b611d65cdb (patch) | |
tree | 81ee2d6dd3a89795df971a1469bdaaa888d5734d /ppapi/proxy/ppb_audio_proxy.cc | |
parent | b9f246772a6cb2e64958d9e9d626b3734746fbf9 (diff) | |
download | chromium_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.cc | 5 |
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) { |