| 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_;
|
|
|