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

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

Issue 2888303002: Rename TaskRunner::RunsTasksOnCurrentThread() in //media, //ui, //ipc (Closed)
Patch Set: Created 3 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 | « ui/app_list/search/dictionary_data_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/input_device_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.cc b/ui/events/ozone/evdev/input_device_factory_evdev.cc
index 331759109399468596073bf6fa8ea52f8811ee30..5bcd80e4239391d949c0eca75e07d23f816b7e4e 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc
@@ -207,7 +207,7 @@ void InputDeviceFactoryEvdev::AttachInputDevice(
const base::FilePath& path = converter->path();
TRACE_EVENT1("evdev", "AttachInputDevice", "path", path.value());
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
// If we have an existing device, detach it. We don't want two
// devices with the same name open at the same time.
@@ -237,7 +237,7 @@ void InputDeviceFactoryEvdev::AttachInputDevice(
void InputDeviceFactoryEvdev::DetachInputDevice(const base::FilePath& path) {
TRACE_EVENT1("evdev", "DetachInputDevice", "path", path.value());
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
// Remove device from map.
std::unique_ptr<EventConverterEvdev> converter = std::move(converters_[path]);
« no previous file with comments | « ui/app_list/search/dictionary_data_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698