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

Unified Diff: remoting/protocol/capture_scheduler.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/protocol/capture_scheduler.h ('k') | remoting/protocol/capture_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/capture_scheduler.cc
diff --git a/remoting/protocol/capture_scheduler.cc b/remoting/protocol/capture_scheduler.cc
index ab913d602a896d6dedd940504d9df23940716ab2..963d9eeb6b0dabfcff8bd07212e1bfb32a9f8c67 100644
--- a/remoting/protocol/capture_scheduler.cc
+++ b/remoting/protocol/capture_scheduler.cc
@@ -117,7 +117,7 @@ void CaptureScheduler::OnFrameSent() {
ScheduleNextCapture();
}
-void CaptureScheduler::ProcessVideoAck(scoped_ptr<VideoAck> video_ack) {
+void CaptureScheduler::ProcessVideoAck(std::unique_ptr<VideoAck> video_ack) {
DCHECK(thread_checker_.CalledOnValidThread());
--num_unacknowledged_frames_;
@@ -127,11 +127,11 @@ void CaptureScheduler::ProcessVideoAck(scoped_ptr<VideoAck> video_ack) {
}
void CaptureScheduler::SetTickClockForTest(
- scoped_ptr<base::TickClock> tick_clock) {
+ std::unique_ptr<base::TickClock> tick_clock) {
tick_clock_ = std::move(tick_clock);
}
-void CaptureScheduler::SetTimerForTest(scoped_ptr<base::Timer> timer) {
+void CaptureScheduler::SetTimerForTest(std::unique_ptr<base::Timer> timer) {
capture_timer_ = std::move(timer);
}
« no previous file with comments | « remoting/protocol/capture_scheduler.h ('k') | remoting/protocol/capture_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698