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

Unified Diff: extensions/browser/api/hid/hid_api.cc

Issue 771393002: Migrate HidServiceLinux and HidConnectionLinux to BrowserThread::UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched to an embedded thread checker. Created 6 years 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 | « device/hid/hid_service_unittest.cc ('k') | extensions/browser/api/hid/hid_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/hid/hid_api.cc
diff --git a/extensions/browser/api/hid/hid_api.cc b/extensions/browser/api/hid/hid_api.cc
index fcb8abf55951b422d4c913c158ec37cca5210fdf..27d495dadfed4133859b71d8174fb6f486c29314 100644
--- a/extensions/browser/api/hid/hid_api.cc
+++ b/extensions/browser/api/hid/hid_api.cc
@@ -64,12 +64,11 @@ HidAsyncApiFunction::HidAsyncApiFunction()
HidAsyncApiFunction::~HidAsyncApiFunction() {}
bool HidAsyncApiFunction::PrePrepare() {
-#if defined(OS_MACOSX)
- // Migration from FILE thread to UI thread. OS X gets it first.
- set_work_thread_id(content::BrowserThread::UI);
-#else
- // TODO(reillyg): Migrate Linux/CrOS and Windows as well.
+#if defined(OS_WIN)
+ // TODO(reillyg): Migrate Windows backend from FILE thread to UI thread.
set_work_thread_id(content::BrowserThread::FILE);
+#else
+ set_work_thread_id(content::BrowserThread::UI);
#endif
device_manager_ = HidDeviceManager::Get(browser_context());
if (!device_manager_) {
« no previous file with comments | « device/hid/hid_service_unittest.cc ('k') | extensions/browser/api/hid/hid_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698