summaryrefslogtreecommitdiffstats
path: root/device/hid/hid_connection_unittest.cc
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2014-12-03 16:26:27 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-04 00:27:20 +0000
commit56868deb02c83ade521fa482e2d03b9319162ae9 (patch)
tree7de3aa7d1acb084f9902bbcd943733fe7df1329a /device/hid/hid_connection_unittest.cc
parent255cf5511b0932fd3e500089ca3d53bd7e5c13c9 (diff)
downloadchromium_src-56868deb02c83ade521fa482e2d03b9319162ae9.zip
chromium_src-56868deb02c83ade521fa482e2d03b9319162ae9.tar.gz
chromium_src-56868deb02c83ade521fa482e2d03b9319162ae9.tar.bz2
Migrate HidServiceLinux and HidConnectionLinux to BrowserThread::UI.
This patch is a follow-up to https://crrev.com/e8fa00efd0965a7eb5816a that moves the HidService and HidConnection implementations on Linux from the browser's FILE thread to the UI thread. This is being done because the HID APIs on platforms other than Linux are more natural to use on the UI thread. The users of these objects are also usually on the UI thread. (For example, the extension API bindings.) BUG=422540 Review URL: https://codereview.chromium.org/771393002 Cr-Commit-Position: refs/heads/master@{#306729}
Diffstat (limited to 'device/hid/hid_connection_unittest.cc')
-rw-r--r--device/hid/hid_connection_unittest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/device/hid/hid_connection_unittest.cc b/device/hid/hid_connection_unittest.cc
index a8530ee..fbacb52 100644
--- a/device/hid/hid_connection_unittest.cc
+++ b/device/hid/hid_connection_unittest.cc
@@ -98,9 +98,7 @@ class HidConnectionTest : public testing::Test {
if (!UsbTestGadget::IsTestEnabled()) return;
message_loop_.reset(new base::MessageLoopForIO());
- service_ = HidService::GetInstance(
- message_loop_->message_loop_proxy(),
- message_loop_->message_loop_proxy());
+ service_ = HidService::GetInstance(message_loop_->message_loop_proxy());
ASSERT_TRUE(service_);
test_gadget_ = UsbTestGadget::Claim();