Index: device/hid/hid_service.cc |
diff --git a/device/hid/hid_service.cc b/device/hid/hid_service.cc |
index 00f52dc52fb8cd1a83d2f3f84b88304a09943f6b..d908fe7d2d09d5018fb943309996a82cbfdee0bc 100644 |
--- a/device/hid/hid_service.cc |
+++ b/device/hid/hid_service.cc |
@@ -6,10 +6,11 @@ |
#include "base/at_exit.h" |
#include "base/bind.h" |
+#include "base/location.h" |
#include "base/logging.h" |
#include "base/memory/ptr_util.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/stl_util.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "build/build_config.h" |
#include "components/device_event_log/device_event_log.h" |
@@ -55,8 +56,8 @@ void HidService::GetDevices(const GetDevicesCallback& callback) { |
for (const auto& map_entry : devices_) { |
devices.push_back(map_entry.second); |
} |
- base::MessageLoop::current()->PostTask(FROM_HERE, |
- base::Bind(callback, devices)); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(callback, devices)); |
} else { |
pending_enumerations_.push_back(callback); |
} |