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

Unified Diff: remoting/protocol/capture_scheduler.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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
Index: remoting/protocol/capture_scheduler.cc
diff --git a/remoting/protocol/capture_scheduler.cc b/remoting/protocol/capture_scheduler.cc
index 1e8f73a1bac74e348edff2375d52fe02b934ec6f..2d7f13653b73292c4fc5cde4c8d5a1426332cb9b 100644
--- a/remoting/protocol/capture_scheduler.cc
+++ b/remoting/protocol/capture_scheduler.cc
@@ -127,11 +127,11 @@ void CaptureScheduler::ProcessVideoAck(scoped_ptr<VideoAck> video_ack) {
void CaptureScheduler::SetTickClockForTest(
scoped_ptr<base::TickClock> tick_clock) {
- tick_clock_ = tick_clock.Pass();
+ tick_clock_ = std::move(tick_clock);
}
void CaptureScheduler::SetTimerForTest(scoped_ptr<base::Timer> timer) {
- capture_timer_ = timer.Pass();
+ capture_timer_ = std::move(timer);
}
void CaptureScheduler::SetNumOfProcessorsForTest(int num_of_processors) {

Powered by Google App Engine
This is Rietveld 408576698