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

Unified Diff: chrome/browser/chrome_device_client.h

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: chrome/browser/chrome_device_client.h
diff --git a/chrome/browser/chrome_device_client.h b/chrome/browser/chrome_device_client.h
index a4ed096d07bfbcf1670d166c5001e7e300b7c9c4..df643e59bd4aa31c770df1719c997c0f4567d2fd 100644
--- a/chrome/browser/chrome_device_client.h
+++ b/chrome/browser/chrome_device_client.h
@@ -9,7 +9,7 @@
#include <memory>
-#include "base/compiler_specific.h"
+#include "base/logging.h"
#include "base/macros.h"
// Implementation of device::DeviceClient that returns //device service
@@ -19,11 +19,18 @@ class ChromeDeviceClient : device::DeviceClient {
ChromeDeviceClient();
~ChromeDeviceClient() override;
+ // Must be called before the destructor, when the FILE thread is still alive.
+ void Shutdown();
+
// device::DeviceClient implementation
device::UsbService* GetUsbService() override;
device::HidService* GetHidService() override;
private:
+#if DCHECK_IS_ON()
+ bool did_shutdown_ = false;
+#endif
+
std::unique_ptr<device::HidService> hid_service_;
std::unique_ptr<device::UsbService> usb_service_;

Powered by Google App Engine
This is Rietveld 408576698