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

Unified Diff: media/audio/fake_audio_log_factory.cc

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « media/audio/fake_audio_log_factory.h ('k') | media/audio/fake_audio_output_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_log_factory.cc
diff --git a/media/audio/fake_audio_log_factory.cc b/media/audio/fake_audio_log_factory.cc
index fd5cf4580dca2081056ec4bfbe224205fd948aa8..96e8b5bd9ba0dbe4462ed13c5e4f088454fec24f 100644
--- a/media/audio/fake_audio_log_factory.cc
+++ b/media/audio/fake_audio_log_factory.cc
@@ -6,6 +6,8 @@
#include <string>
+#include "base/memory/ptr_util.h"
+
namespace media {
class FakeAudioLogImpl : public AudioLog {
@@ -27,9 +29,9 @@ class FakeAudioLogImpl : public AudioLog {
FakeAudioLogFactory::FakeAudioLogFactory() {}
FakeAudioLogFactory::~FakeAudioLogFactory() {}
-scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog(
+std::unique_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog(
AudioComponent component) {
- return scoped_ptr<AudioLog>(new FakeAudioLogImpl());
+ return base::WrapUnique(new FakeAudioLogImpl());
}
} // namespace media
« no previous file with comments | « media/audio/fake_audio_log_factory.h ('k') | media/audio/fake_audio_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698