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: extensions/shell/browser/shell_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
« device/usb/usb_service_unittest.cc ('K') | « device/usb/usb_service_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_device_client.cc
diff --git a/extensions/shell/browser/shell_device_client.cc b/extensions/shell/browser/shell_device_client.cc
index 9973d5b01d0384ed09029c3145ca13f8899d69df..a7af1d5010bdcd6c53266f315aa278ff65ea8fd9 100644
--- a/extensions/shell/browser/shell_device_client.cc
+++ b/extensions/shell/browser/shell_device_client.cc
@@ -32,11 +32,8 @@ void ShellDeviceClient::Shutdown() {
device::UsbService* ShellDeviceClient::GetUsbService() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
-
- if (!usb_service_) {
- usb_service_ = device::UsbService::Create(
- BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
- }
+ if (!usb_service_)
+ usb_service_ = device::UsbService::Create();
return usb_service_.get();
}
« device/usb/usb_service_unittest.cc ('K') | « device/usb/usb_service_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698