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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 516173002: ui: Replace MessageLoopProxy usage with ThreadTaskRunnerHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index 216488ee5b04925b86b41c2ca8c48c66089e8869..378ac52de9b2c54c58060f1ae4d2c16c3e8935fa 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -10,6 +10,7 @@
#include "base/debug/trace_event.h"
#include "base/stl_util.h"
#include "base/task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/worker_pool.h"
#include "ui/events/ozone/device/device_event.h"
#include "ui/events/ozone/device/device_manager.h"
@@ -198,7 +199,7 @@ void EventFactoryEvdev::OnDeviceEvent(const DeviceEvent& event) {
void EventFactoryEvdev::OnDispatcherListChanged() {
if (!ui_task_runner_) {
- ui_task_runner_ = base::MessageLoopProxy::current();
+ ui_task_runner_ = base::ThreadTaskRunnerHandle::Get();
// Scan & monitor devices.
device_manager_->AddObserver(this);
device_manager_->ScanDevices(this);

Powered by Google App Engine
This is Rietveld 408576698