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

Unified Diff: ui/events/devices/device_util_linux.cc

Issue 1844033002: Permit MaterialDesignController to make IO call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: presubmit change Created 4 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/base/material_design/material_design_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/device_util_linux.cc
diff --git a/ui/events/devices/device_util_linux.cc b/ui/events/devices/device_util_linux.cc
index 856a7725a76b8191f115dce82e7c0b2e82407e00..818ae05417310021820c8b6d13ae586644b1c523 100644
--- a/ui/events/devices/device_util_linux.cc
+++ b/ui/events/devices/device_util_linux.cc
@@ -11,6 +11,7 @@
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/string_util.h"
+#include "base/threading/thread_restrictions.h"
namespace ui {
@@ -20,7 +21,7 @@ base::FilePath GetInputPathInSys(const base::FilePath& path) {
}
InputDeviceType GetInputDeviceTypeFromPath(const base::FilePath& path) {
- DCHECK(!base::MessageLoopForUI::IsCurrent());
+ base::ThreadRestrictions::AssertIOAllowed();
std::string event_node = path.BaseName().value();
if (event_node.empty() ||
!base::StartsWith(event_node, "event",
« no previous file with comments | « ui/base/material_design/material_design_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698