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

Unified Diff: content/renderer/media/video_capture_impl_manager_unittest.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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 | « content/renderer/media/video_capture_impl_manager.cc ('k') | content/renderer/media/video_track_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl_manager_unittest.cc
diff --git a/content/renderer/media/video_capture_impl_manager_unittest.cc b/content/renderer/media/video_capture_impl_manager_unittest.cc
index 39c9e8e4faedb7eb55352815090d182c83ca6c18..a777d6584b9c2d2277029d0c392a5b6e3c9fa921 100644
--- a/content/renderer/media/video_capture_impl_manager_unittest.cc
+++ b/content/renderer/media/video_capture_impl_manager_unittest.cc
@@ -77,14 +77,12 @@ class VideoCaptureImplManagerTest : public ::testing::Test {
}
void FakeChannelSetup() {
- scoped_refptr<base::MessageLoopProxy> loop =
- child_process_->io_message_loop_proxy();
- if (!loop->BelongsToCurrentThread()) {
- loop->PostTask(
- FROM_HERE,
- base::Bind(
- &VideoCaptureImplManagerTest::FakeChannelSetup,
- base::Unretained(this)));
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner =
+ child_process_->io_task_runner();
+ if (!task_runner->BelongsToCurrentThread()) {
+ task_runner->PostTask(
+ FROM_HERE, base::Bind(&VideoCaptureImplManagerTest::FakeChannelSetup,
+ base::Unretained(this)));
return;
}
manager_->video_capture_message_filter()->OnFilterAdded(NULL);
« no previous file with comments | « content/renderer/media/video_capture_impl_manager.cc ('k') | content/renderer/media/video_track_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698