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

Unified Diff: device/hid/hid_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/hid/hid_service.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service_linux.h
diff --git a/device/hid/hid_service_linux.h b/device/hid/hid_service_linux.h
index 7972c80a782cc13c9a52eaeca0b98646e7cc5b34..fa6cef3cd623f7430318251aa3fe94c0379c22c0 100644
--- a/device/hid/hid_service_linux.h
+++ b/device/hid/hid_service_linux.h
@@ -24,6 +24,8 @@ class HidServiceLinux : public HidService {
HidServiceLinux(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
~HidServiceLinux() override;
+ // HidService:
+ void Shutdown() override;
void Connect(const HidDeviceId& device_id,
const ConnectCallback& callback) override;
@@ -53,7 +55,7 @@ class HidServiceLinux : public HidService {
// The helper lives on the FILE thread and holds a weak reference back to the
// service that owns it.
- FileThreadHelper* helper_;
+ std::unique_ptr<FileThreadHelper> helper_;
base::WeakPtrFactory<HidServiceLinux> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(HidServiceLinux);
« no previous file with comments | « device/hid/hid_service.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698