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

Unified Diff: device/test/test_device_client.cc

Issue 2482463002: Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). (Closed)
Patch Set: CR achuithb #24 Created 4 years, 1 month 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/test/test_device_client.h ('k') | device/usb/mock_usb_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/test_device_client.cc
diff --git a/device/test/test_device_client.cc b/device/test/test_device_client.cc
index 7a6c0526fb63b1d89802f8d539571d6279e3a238..8ee7f52ad24f2f8d6302f27014bbb47e9f2bce57 100644
--- a/device/test/test_device_client.cc
+++ b/device/test/test_device_client.cc
@@ -19,7 +19,12 @@ TestDeviceClient::TestDeviceClient(
scoped_refptr<base::SingleThreadTaskRunner> blocking_task_runner)
: blocking_task_runner_(blocking_task_runner) {}
-TestDeviceClient::~TestDeviceClient() {}
+TestDeviceClient::~TestDeviceClient() {
+ if (hid_service_)
+ hid_service_->Shutdown();
+ if (usb_service_)
+ usb_service_->Shutdown();
+}
HidService* TestDeviceClient::GetHidService() {
#if !defined(OS_ANDROID) && !defined(OS_IOS) && \
« no previous file with comments | « device/test/test_device_client.h ('k') | device/usb/mock_usb_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698