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

Unified Diff: device/usb/mock_usb_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/usb/mock_usb_service.cc
diff --git a/device/usb/mock_usb_service.cc b/device/usb/mock_usb_service.cc
index 460a45d2f8101e181665980a539e9f8def5342ef..e1d98c131a2c15dcf6c635c2783d10bb8fe02ebe 100644
--- a/device/usb/mock_usb_service.cc
+++ b/device/usb/mock_usb_service.cc
@@ -14,6 +14,8 @@ namespace device {
MockUsbService::MockUsbService() : UsbService(nullptr, nullptr) {}
MockUsbService::~MockUsbService() {
+ // Shutdown() must be called before the base class destructor.
+ Shutdown();
}
void MockUsbService::AddDevice(scoped_refptr<UsbDevice> device) {

Powered by Google App Engine
This is Rietveld 408576698