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

Unified Diff: chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc

Issue 1875623002: Convert //chromecast 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
Index: chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc
diff --git a/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc b/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc
index f1e76a4d529cf962658ee43b22f3c4b06ca747bb..94c257a2363a23a13060fd2524d27053be4abda6 100644
--- a/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc
+++ b/chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc
@@ -21,7 +21,7 @@ namespace chromecast {
namespace media {
CodedFrameProviderHost::CodedFrameProviderHost(
- scoped_ptr<MediaMessageFifo> media_message_fifo)
+ std::unique_ptr<MediaMessageFifo> media_message_fifo)
: fifo_(std::move(media_message_fifo)), weak_factory_(this) {
weak_this_ = weak_factory_.GetWeakPtr();
thread_checker_.DetachFromThread();
@@ -63,7 +63,7 @@ void CodedFrameProviderHost::ReadMessages() {
// Read messages until a frame is provided (i.e. not just the audio/video
// configurations).
while (!read_cb_.is_null()) {
- scoped_ptr<MediaMessage> msg(fifo_->Pop());
+ std::unique_ptr<MediaMessage> msg(fifo_->Pop());
if (!msg)
break;

Powered by Google App Engine
This is Rietveld 408576698