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

Unified Diff: device/hid/mock_hid_service.cc

Issue 2482463002: Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). (Closed)
Patch Set: Fix ChromeOS build error 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
Index: device/hid/mock_hid_service.cc
diff --git a/device/hid/mock_hid_service.cc b/device/hid/mock_hid_service.cc
index 7c73a3543c8f32a5480f79b588990ee593dbae29..3b913cf696d044b8fa5d8c6a5c5904393cedcf26 100644
--- a/device/hid/mock_hid_service.cc
+++ b/device/hid/mock_hid_service.cc
@@ -8,7 +8,10 @@ namespace device {
MockHidService::MockHidService() {}
-MockHidService::~MockHidService() {}
+MockHidService::~MockHidService() {
+ // Shutdown() must be called before the base class destructor.
+ Shutdown();
+}
void MockHidService::AddDevice(scoped_refptr<HidDeviceInfo> info) {
HidService::AddDevice(info);

Powered by Google App Engine
This is Rietveld 408576698