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

Unified Diff: device/usb/mock_usb_service.cc

Issue 2611773004: Allow top-level frames to request any USB device. (Closed)
Patch Set: Add comments explaining how the mock devices are being used. Created 3 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mock_usb_service.cc
diff --git a/device/usb/mock_usb_service.cc b/device/usb/mock_usb_service.cc
index e1d98c131a2c15dcf6c635c2783d10bb8fe02ebe..ff78d42f479bfc68e7c685d95e515886548ffb5a 100644
--- a/device/usb/mock_usb_service.cc
+++ b/device/usb/mock_usb_service.cc
@@ -7,11 +7,16 @@
#include <string>
#include <vector>
+#include "base/threading/thread_task_runner_handle.h"
#include "device/usb/usb_device.h"
namespace device {
-MockUsbService::MockUsbService() : UsbService(nullptr, nullptr) {}
+MockUsbService::MockUsbService()
+ : UsbService(base::ThreadTaskRunnerHandle::IsSet()
+ ? base::ThreadTaskRunnerHandle::Get()
+ : nullptr,
+ nullptr) {}
MockUsbService::~MockUsbService() {
// Shutdown() must be called before the base class destructor.
« no previous file with comments | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698