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

Unified Diff: media/cast/test/utility/in_process_receiver.cc

Issue 1544313002: Convert Pass()→std::move() in //media (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 | « media/cast/test/utility/audio_utility.cc ('k') | media/cast/test/utility/tap_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/in_process_receiver.cc
diff --git a/media/cast/test/utility/in_process_receiver.cc b/media/cast/test/utility/in_process_receiver.cc
index 788325fc401aa866577ba4c8ede0a9cee1309a8d..1e97c9ab116a5b49d6a9816cf824973655806cbc 100644
--- a/media/cast/test/utility/in_process_receiver.cc
+++ b/media/cast/test/utility/in_process_receiver.cc
@@ -4,6 +4,8 @@
#include "media/cast/test/utility/in_process_receiver.h"
+#include <utility>
+
#include "base/bind_helpers.h"
#include "base/synchronization/waitable_event.h"
#include "base/time/time.h"
@@ -104,7 +106,7 @@ void InProcessReceiver::GotAudioFrame(scoped_ptr<AudioBus> audio_frame,
bool is_continuous) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
if (audio_frame.get())
- OnAudioFrame(audio_frame.Pass(), playout_time, is_continuous);
+ OnAudioFrame(std::move(audio_frame), playout_time, is_continuous);
PullNextAudioFrame();
}
@@ -133,7 +135,7 @@ void InProcessReceiver::PullNextVideoFrame() {
void InProcessReceiver::ReceivePacket(scoped_ptr<Packet> packet) {
// TODO(Hubbe): Make an InsertPacket method instead.
- cast_receiver_->ReceivePacket(packet.Pass());
+ cast_receiver_->ReceivePacket(std::move(packet));
}
} // namespace cast
« no previous file with comments | « media/cast/test/utility/audio_utility.cc ('k') | media/cast/test/utility/tap_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698