Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: content/renderer/media/renderer_webaudiodevice_impl.cc

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698