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

Unified Diff: device/test/test_device_client.cc

Issue 2885143002: Use the task scheduler in the new Windows USB backend (Closed)
Patch Set: Created 3 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
Index: device/test/test_device_client.cc
diff --git a/device/test/test_device_client.cc b/device/test/test_device_client.cc
index 7b9d033839a1a9ec0c1e499338ba805e2a379fb3..627374d21d8df1864e13fa8a54d6f5ce016cd0c7 100644
--- a/device/test/test_device_client.cc
+++ b/device/test/test_device_client.cc
@@ -16,9 +16,7 @@
namespace device {
-TestDeviceClient::TestDeviceClient(
- scoped_refptr<base::SingleThreadTaskRunner> blocking_task_runner)
- : blocking_task_runner_(blocking_task_runner) {}
+TestDeviceClient::TestDeviceClient() = default;
TestDeviceClient::~TestDeviceClient() {
if (hid_service_)
@@ -38,9 +36,8 @@ HidService* TestDeviceClient::GetHidService() {
UsbService* TestDeviceClient::GetUsbService() {
#if !defined(OS_ANDROID) && !defined(OS_IOS)
- if (!usb_service_) {
- usb_service_ = UsbService::Create(blocking_task_runner_);
- }
+ if (!usb_service_)
+ usb_service_ = UsbService::Create();
#endif
return usb_service_.get();
}

Powered by Google App Engine
This is Rietveld 408576698