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

Unified Diff: media/video/capture/linux/video_capture_device_chromeos.cc

Issue 1108773002: [media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build break Created 5 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
Index: media/video/capture/linux/video_capture_device_chromeos.cc
diff --git a/media/video/capture/linux/video_capture_device_chromeos.cc b/media/video/capture/linux/video_capture_device_chromeos.cc
index 4a6b501f878eadb34120272b7ac6b00f95710cbc..5abfbffaa2521ca386149e4276aa620e7d1f25a3 100644
--- a/media/video/capture/linux/video_capture_device_chromeos.cc
+++ b/media/video/capture/linux/video_capture_device_chromeos.cc
@@ -6,7 +6,8 @@
#include "base/bind.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "ui/gfx/display.h"
#include "ui/gfx/display_observer.h"
#include "ui/gfx/screen.h"
@@ -24,7 +25,7 @@ class VideoCaptureDeviceChromeOS::ScreenObserverDelegate
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
: capture_device_(capture_device),
ui_task_runner_(ui_task_runner),
- capture_task_runner_(base::MessageLoopProxy::current()) {
+ capture_task_runner_(base::ThreadTaskRunnerHandle::Get()) {
ui_task_runner_->PostTask(
FROM_HERE,
base::Bind(&ScreenObserverDelegate::AddObserverOnUIThread, this));
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/video/capture/mac/video_capture_device_factory_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698