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

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

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: 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 a7966e69d3bdfb66e3d044289b27f23d0347f2a8..50f824098db3ac65896055fedfbca8dc4b2a9ca7 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
@@ -80,9 +80,9 @@ AudioDestination::AudioDestination(AudioIOCallback& callback,
// 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_ = WTF::WrapUnique(Platform::Current()->CreateAudioDevice(
+ web_audio_device_ = 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();
@@ -176,8 +176,8 @@ void AudioDestination::Start() {
// Start the "audio device" after the rendering thread is ready.
if (web_audio_device_ && !is_playing_) {
- rendering_thread_ = WTF::WrapUnique(
- Platform::Current()->CreateThread("WebAudio Rendering Thread"));
+ rendering_thread_ =
+ Platform::Current()->CreateThread("WebAudio Rendering Thread");
web_audio_device_->Start();
is_playing_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698