Index: webkit/plugins/ppapi/ppb_audio_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_audio_impl.cc b/webkit/plugins/ppapi/ppb_audio_impl.cc |
index f5b64adf9e05b6e061f39b5306f44317207c56c3..7024aea93c5f1dcfe44d1399302575be6b6eaf3b 100644 |
--- a/webkit/plugins/ppapi/ppb_audio_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_audio_impl.cc |
@@ -112,8 +112,9 @@ PP_Bool PPB_Audio_Impl::StopPlayback() { |
return PP_TRUE; |
} |
-int32_t PPB_Audio_Impl::OpenTrusted(PP_Resource config, |
- PP_CompletionCallback create_callback) { |
+int32_t PPB_Audio_Impl::OpenTrusted( |
+ PP_Resource config, |
+ scoped_refptr<TrackedCallback> create_callback) { |
// Validate the config and keep a reference to it. |
EnterResourceNoLock<PPB_AudioConfig_API> enter(config, true); |
if (enter.failed()) |
@@ -135,7 +136,7 @@ int32_t PPB_Audio_Impl::OpenTrusted(PP_Resource config, |
// At this point, we are guaranteeing ownership of the completion |
// callback. Audio promises to fire the completion callback |
// once and only once. |
- SetCreateCallback(new TrackedCallback(this, create_callback)); |
+ SetCreateCallback(create_callback); |
return PP_OK_COMPLETIONPENDING; |
} |