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

Unified Diff: remoting/host/audio_capturer_win.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 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
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index 86fd95951dde2ec6f02bdd35bacc43376ac4093a..24a4c61b9f35f8fbf3579f423f43611c47cf8271 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -15,6 +15,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
namespace {
const int kChannels = 2;
@@ -267,7 +268,7 @@ void AudioCapturerWin::ProcessSamples(uint8_t* data,
}
}
- scoped_ptr<AudioPacket> packet(new AudioPacket());
+ std::unique_ptr<AudioPacket> packet(new AudioPacket());
packet->add_data(data, frames * wave_format_ex_->nBlockAlign);
packet->set_encoding(AudioPacket::ENCODING_RAW);
packet->set_sampling_rate(sampling_rate_);
@@ -325,8 +326,8 @@ bool AudioCapturer::IsSupported() {
return true;
}
-scoped_ptr<AudioCapturer> AudioCapturer::Create() {
- return make_scoped_ptr(new AudioCapturerWin());
+std::unique_ptr<AudioCapturer> AudioCapturer::Create() {
+ return base::WrapUnique(new AudioCapturerWin());
}
} // namespace remoting
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698