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

Unified Diff: device/usb/usb_service_linux.h

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/usb/usb_service.cc ('k') | device/usb/usb_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service_linux.h
diff --git a/device/usb/usb_service_linux.h b/device/usb/usb_service_linux.h
index ed9e9f782726931332cb30a7a2e260c60c0c0759..e50190cfc6822d6d5fc89e53669a42170eb4d6c6 100644
--- a/device/usb/usb_service_linux.h
+++ b/device/usb/usb_service_linux.h
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <list>
+#include <memory>
#include <unordered_map>
#include "base/macros.h"
@@ -22,10 +23,11 @@ class UsbDeviceLinux;
class UsbServiceLinux : public UsbService {
public:
explicit UsbServiceLinux(
- scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_in);
~UsbServiceLinux() override;
// device::UsbService implementation
+ void Shutdown() override;
void GetDevices(const GetDevicesCallback& callback) override;
private:
@@ -57,7 +59,7 @@ class UsbServiceLinux : public UsbService {
uint32_t first_enumeration_countdown_ = 0;
std::list<GetDevicesCallback> enumeration_callbacks_;
- FileThreadHelper* helper_;
+ std::unique_ptr<FileThreadHelper> helper_;
DeviceMap devices_by_path_;
base::WeakPtrFactory<UsbServiceLinux> weak_factory_;
« no previous file with comments | « device/usb/usb_service.cc ('k') | device/usb/usb_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698