Index: remoting/host/screen_recorder.cc |
=================================================================== |
--- remoting/host/screen_recorder.cc (revision 86971) |
+++ remoting/host/screen_recorder.cc (working copy) |
@@ -11,6 +11,7 @@ |
#include "base/stl_util-inl.h" |
#include "base/task.h" |
#include "base/time.h" |
+#include "media/base/callback.h" |
#include "remoting/base/capture_data.h" |
#include "remoting/base/tracer.h" |
#include "remoting/proto/control.pb.h" |
@@ -150,7 +151,7 @@ |
void ScreenRecorder::DoStop(Task* done_task) { |
DCHECK_EQ(capture_loop_, MessageLoop::current()); |
- base::ScopedTaskRunner done_runner(done_task); |
+ media::AutoTaskRunner done_runner(done_task); |
// We might have not started when we receive a stop command, simply run the |
// task and then return. |
@@ -166,7 +167,7 @@ |
FROM_HERE, |
NewTracedMethod(this, |
&ScreenRecorder::DoStopOnNetworkThread, |
- done_runner.Release())); |
+ done_runner.release())); |
return; |
} |
} |