Index: content/renderer/media/renderer_webaudiodevice_impl.cc |
diff --git a/content/renderer/media/renderer_webaudiodevice_impl.cc b/content/renderer/media/renderer_webaudiodevice_impl.cc |
index 2b3d9b7f62f4811e71b4dfcb33b3899cec57579c..ef941bec24e00b4c414f38abd6562ecf39c08ba3 100644 |
--- a/content/renderer/media/renderer_webaudiodevice_impl.cc |
+++ b/content/renderer/media/renderer_webaudiodevice_impl.cc |
@@ -104,17 +104,18 @@ media::AudioParameters GetOutputDeviceParameters( |
} // namespace |
-RendererWebAudioDeviceImpl* RendererWebAudioDeviceImpl::Create( |
+std::unique_ptr<RendererWebAudioDeviceImpl> RendererWebAudioDeviceImpl::Create( |
media::ChannelLayout layout, |
int channels, |
const blink::WebAudioLatencyHint& latency_hint, |
WebAudioDevice::RenderCallback* callback, |
int session_id, |
const url::Origin& security_origin) { |
- return new RendererWebAudioDeviceImpl(layout, channels, latency_hint, |
- callback, session_id, security_origin, |
- base::Bind(&GetOutputDeviceParameters), |
- base::Bind(&FrameIdFromCurrentContext)); |
+ return std::unique_ptr<RendererWebAudioDeviceImpl>( |
+ new RendererWebAudioDeviceImpl(layout, channels, latency_hint, callback, |
+ session_id, security_origin, |
+ base::Bind(&GetOutputDeviceParameters), |
+ base::Bind(&FrameIdFromCurrentContext))); |
} |
RendererWebAudioDeviceImpl::RendererWebAudioDeviceImpl( |