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

Unified Diff: media/capture/video/file_video_capture_device.cc

Issue 2086353002: Remove calls to deprecated MessageLoop methods in media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/cast/sender/h264_vt_encoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/file_video_capture_device.cc
diff --git a/media/capture/video/file_video_capture_device.cc b/media/capture/video/file_video_capture_device.cc
index e4298066fdf4f3c2036d97c8b8bdf484d6f7f6fa..9a40c50f4e8f4993d24455f294fbe2390ac1958c 100644
--- a/media/capture/video/file_video_capture_device.cc
+++ b/media/capture/video/file_video_capture_device.cc
@@ -313,7 +313,7 @@ void FileVideoCaptureDevice::AllocateAndStart(
CHECK(!capture_thread_.IsRunning());
capture_thread_.Start();
- capture_thread_.message_loop()->PostTask(
+ capture_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&FileVideoCaptureDevice::OnAllocateAndStart,
base::Unretained(this), params, base::Passed(&client)));
@@ -323,7 +323,7 @@ void FileVideoCaptureDevice::StopAndDeAllocate() {
DCHECK(thread_checker_.CalledOnValidThread());
CHECK(capture_thread_.IsRunning());
- capture_thread_.message_loop()->PostTask(
+ capture_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&FileVideoCaptureDevice::OnStopAndDeAllocate,
base::Unretained(this)));
capture_thread_.Stop();
@@ -346,7 +346,7 @@ void FileVideoCaptureDevice::OnAllocateAndStart(
DVLOG(1) << "Opened video file " << capture_format_.frame_size.ToString()
<< ", fps: " << capture_format_.frame_rate;
- capture_thread_.message_loop()->PostTask(
+ capture_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&FileVideoCaptureDevice::OnCaptureTask,
base::Unretained(this)));
}
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/cast/sender/h264_vt_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698