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

Unified Diff: components/audio_modem/audio_recorder_impl.h

Issue 1921973002: Convert //components/[a-e]* 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 | « components/audio_modem/audio_recorder.h ('k') | components/audio_modem/audio_recorder_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_recorder_impl.h
diff --git a/components/audio_modem/audio_recorder_impl.h b/components/audio_modem/audio_recorder_impl.h
index 099fc17469acc60f5743ee15a6d7bab5e9305a14..f98a95ff88e098df2bbcf62181560934a2dbb9d3 100644
--- a/components/audio_modem/audio_recorder_impl.h
+++ b/components/audio_modem/audio_recorder_impl.h
@@ -7,11 +7,11 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/audio_modem/audio_recorder.h"
#include "media/audio/audio_io.h"
#include "media/base/audio_parameters.h"
@@ -87,12 +87,12 @@ class AudioRecorderImpl final
// Outside of the ctor/Initialize method, only access the next variables on
// the recording thread.
- scoped_ptr<media::AudioBus> buffer_;
+ std::unique_ptr<media::AudioBus> buffer_;
int total_buffer_frames_;
int buffer_frame_index_;
- scoped_ptr<media::AudioInputStream> input_stream_for_testing_;
- scoped_ptr<media::AudioParameters> params_for_testing_;
+ std::unique_ptr<media::AudioInputStream> input_stream_for_testing_;
+ std::unique_ptr<media::AudioParameters> params_for_testing_;
DISALLOW_COPY_AND_ASSIGN(AudioRecorderImpl);
};
« no previous file with comments | « components/audio_modem/audio_recorder.h ('k') | components/audio_modem/audio_recorder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698