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

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

Issue 559713004: ozone: evdev: Convert CHECKs to DCHECKs per style guide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/events/ozone/evdev/event_modifiers_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d3ba4ba1d03b447c5e663b6e9fefdccb369c5957..7dc288fc76554faced493aace085ca541eea1f16 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -140,7 +140,7 @@ EventFactoryEvdev::EventFactoryEvdev(
base::Bind(base::IgnoreResult(&EventFactoryEvdev::DispatchUiEvent),
base::Unretained(this))),
weak_ptr_factory_(this) {
- CHECK(device_manager_);
+ DCHECK(device_manager_);
}
EventFactoryEvdev::~EventFactoryEvdev() { STLDeleteValues(&converters_); }
@@ -153,7 +153,7 @@ void EventFactoryEvdev::AttachInputDevice(
const base::FilePath& path,
scoped_ptr<EventConverterEvdev> converter) {
TRACE_EVENT1("ozone", "AttachInputDevice", "path", path.value());
- CHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
// If we have an existing device, detach it. We don't want two
// devices with the same name open at the same time.
@@ -208,7 +208,7 @@ void EventFactoryEvdev::OnDispatcherListChanged() {
void EventFactoryEvdev::DetachInputDevice(const base::FilePath& path) {
TRACE_EVENT1("ozone", "DetachInputDevice", "path", path.value());
- CHECK(ui_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
// Remove device from map.
scoped_ptr<EventConverterEvdev> converter(converters_[path]);
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_modifiers_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698