Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.cpp

Issue 2850593002: 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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/audio/AudioDestination.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
index 57c030347f3363f172d2712c3945a65f649936ee..ff053c2dd65a801f89c79d8f8588ba8f724af20e 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
@@ -77,9 +77,9 @@
// local input (e.g. loopback from OS audio system), but Chromium's media
// renderer does not support it currently. Thus, we use zero for the number
// of input channels.
- web_audio_device_ = Platform::Current()->CreateAudioDevice(
+ web_audio_device_ = WTF::WrapUnique(Platform::Current()->CreateAudioDevice(
0, number_of_output_channels, latency_hint, this, String(),
- std::move(security_origin));
+ std::move(security_origin)));
DCHECK(web_audio_device_);
callback_buffer_size_ = web_audio_device_->FramesPerBuffer();

Powered by Google App Engine