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

Unified Diff: media/cast/cast_sender_impl.cc

Issue 1905763002: Convert //media/cast 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/cast/cast_sender_impl.h ('k') | media/cast/common/transport_encryption_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index 1377fc1935b3189cd698c0235f9d5c3c07ed2ab8..06fc18949d8611422768ef24997c1ee8283d112f 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -56,7 +56,7 @@ class LocalVideoFrameInput : public VideoFrameInput {
const scoped_refptr<CastEnvironment> cast_environment_;
const base::WeakPtr<VideoSender> video_sender_;
- const scoped_ptr<VideoFrameFactory> video_frame_factory_;
+ const std::unique_ptr<VideoFrameFactory> video_frame_factory_;
DISALLOW_COPY_AND_ASSIGN(LocalVideoFrameInput);
};
@@ -69,7 +69,7 @@ class LocalAudioFrameInput : public AudioFrameInput {
base::WeakPtr<AudioSender> audio_sender)
: cast_environment_(cast_environment), audio_sender_(audio_sender) {}
- void InsertAudio(scoped_ptr<AudioBus> audio_bus,
+ void InsertAudio(std::unique_ptr<AudioBus> audio_bus,
const base::TimeTicks& recorded_time) final {
cast_environment_->PostTask(CastEnvironment::MAIN,
FROM_HERE,
@@ -91,11 +91,11 @@ class LocalAudioFrameInput : public AudioFrameInput {
DISALLOW_COPY_AND_ASSIGN(LocalAudioFrameInput);
};
-scoped_ptr<CastSender> CastSender::Create(
+std::unique_ptr<CastSender> CastSender::Create(
scoped_refptr<CastEnvironment> cast_environment,
CastTransport* const transport_sender) {
CHECK(cast_environment.get());
- return scoped_ptr<CastSender>(
+ return std::unique_ptr<CastSender>(
new CastSenderImpl(cast_environment, transport_sender));
}
« no previous file with comments | « media/cast/cast_sender_impl.h ('k') | media/cast/common/transport_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698