Index: device/hid/hid_service_linux.cc |
diff --git a/device/hid/hid_service_linux.cc b/device/hid/hid_service_linux.cc |
index e6e09f2829f758599d828f1e055915cbf727e20d..ec36b35385ecbc69ac4c08998b4e0b091932bb47 100644 |
--- a/device/hid/hid_service_linux.cc |
+++ b/device/hid/hid_service_linux.cc |
@@ -212,6 +212,10 @@ HidServiceLinux::HidServiceLinux( |
FROM_HERE, base::Bind(&FileThreadHelper::Start, base::Passed(&helper))); |
} |
+HidServiceLinux::~HidServiceLinux() { |
+ file_task_runner_->DeleteSoon(FROM_HERE, helper_); |
+} |
+ |
void HidServiceLinux::Connect(const HidDeviceId& device_id, |
const ConnectCallback& callback) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
@@ -241,10 +245,6 @@ void HidServiceLinux::Connect(const HidDeviceId& device_id, |
#endif // defined(OS_CHROMEOS) |
} |
-HidServiceLinux::~HidServiceLinux() { |
- file_task_runner_->DeleteSoon(FROM_HERE, helper_); |
-} |
- |
#if defined(OS_CHROMEOS) |
// static |