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

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

Issue 2859553002: Revert of [blink] Unique pointers in Platform.h (Closed)
Patch Set: 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 ef941bec24e00b4c414f38abd6562ecf39c08ba3..2b3d9b7f62f4811e71b4dfcb33b3899cec57579c 100644
--- a/content/renderer/media/renderer_webaudiodevice_impl.cc
+++ b/content/renderer/media/renderer_webaudiodevice_impl.cc
@@ -104,18 +104,17 @@
} // namespace
-std::unique_ptr<RendererWebAudioDeviceImpl> RendererWebAudioDeviceImpl::Create(
+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 std::unique_ptr<RendererWebAudioDeviceImpl>(
- new RendererWebAudioDeviceImpl(layout, channels, latency_hint, callback,
- session_id, security_origin,
- base::Bind(&GetOutputDeviceParameters),
- base::Bind(&FrameIdFromCurrentContext)));
+ return 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