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

Unified Diff: chromecast/renderer/media/media_pipeline_proxy.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « chromecast/renderer/media/media_channel_proxy.cc ('k') | chromecast/renderer/media/video_pipeline_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/media_pipeline_proxy.cc
diff --git a/chromecast/renderer/media/media_pipeline_proxy.cc b/chromecast/renderer/media/media_pipeline_proxy.cc
index 99be284a7c7944984be18db820c3a7e81568b639..af144269ac82a89a56760f08abfded27a2fa5289 100644
--- a/chromecast/renderer/media/media_pipeline_proxy.cc
+++ b/chromecast/renderer/media/media_pipeline_proxy.cc
@@ -4,6 +4,8 @@
#include "chromecast/renderer/media/media_pipeline_proxy.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
@@ -209,7 +211,7 @@ void MediaPipelineProxy::InitializeAudio(
const ::media::PipelineStatusCB& status_cb) {
DCHECK(thread_checker_.CalledOnValidThread());
has_audio_ = true;
- audio_pipeline_->Initialize(config, frame_provider.Pass(), status_cb);
+ audio_pipeline_->Initialize(config, std::move(frame_provider), status_cb);
}
void MediaPipelineProxy::InitializeVideo(
@@ -218,7 +220,7 @@ void MediaPipelineProxy::InitializeVideo(
const ::media::PipelineStatusCB& status_cb) {
DCHECK(thread_checker_.CalledOnValidThread());
has_video_ = true;
- video_pipeline_->Initialize(configs, frame_provider.Pass(), status_cb);
+ video_pipeline_->Initialize(configs, std::move(frame_provider), status_cb);
}
void MediaPipelineProxy::StartPlayingFrom(base::TimeDelta time) {
« no previous file with comments | « chromecast/renderer/media/media_channel_proxy.cc ('k') | chromecast/renderer/media/video_pipeline_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698