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

Unified Diff: ui/events/ozone/device/device_manager_manual.cc

Issue 853073003: Fix assertion starting cast_shell (breaking thread IO restrictions). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mistake in presubmit regex Created 5 years, 11 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
« PRESUBMIT.py ('K') | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/device/device_manager_manual.cc
diff --git a/ui/events/ozone/device/device_manager_manual.cc b/ui/events/ozone/device/device_manager_manual.cc
index c86ffccf62bdae50079e2927d77841a24cefdc7d..059fbe7494714e4665156ab84127338776de2531 100644
--- a/ui/events/ozone/device/device_manager_manual.cc
+++ b/ui/events/ozone/device/device_manager_manual.cc
@@ -5,6 +5,7 @@
#include "ui/events/ozone/device/device_manager_manual.h"
#include "base/files/file_enumerator.h"
+#include "base/threading/thread_restrictions.h"
#include "ui/events/ozone/device/device_event.h"
#include "ui/events/ozone/device/device_event_observer.h"
@@ -15,6 +16,7 @@ DeviceManagerManual::DeviceManagerManual() {}
DeviceManagerManual::~DeviceManagerManual() {}
void DeviceManagerManual::ScanDevices(DeviceEventObserver* observer) {
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
base::FileEnumerator file_enum(base::FilePath("/dev/input"),
false,
base::FileEnumerator::FILES,
« PRESUBMIT.py ('K') | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698