Index: device/serial/serial_service_impl.cc |
diff --git a/device/serial/serial_service_impl.cc b/device/serial/serial_service_impl.cc |
index 5fc886df2eca241e338333ee682e8ae420656a41..22734c89c9273e03d760043623cd60e65222368d 100644 |
--- a/device/serial/serial_service_impl.cc |
+++ b/device/serial/serial_service_impl.cc |
@@ -27,28 +27,26 @@ SerialServiceImpl::~SerialServiceImpl() { |
// static |
void SerialServiceImpl::Create( |
- scoped_refptr<base::MessageLoopProxy> io_message_loop, |
- scoped_refptr<base::MessageLoopProxy> ui_message_loop, |
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
mojo::InterfaceRequest<serial::SerialService> request) { |
- mojo::BindToRequest(new SerialServiceImpl(new SerialConnectionFactory( |
- base::Bind(SerialIoHandler::Create, |
- base::MessageLoopProxy::current(), |
- ui_message_loop), |
- io_message_loop)), |
- &request); |
+ mojo::BindToRequest( |
+ new SerialServiceImpl(new SerialConnectionFactory( |
+ base::Bind(SerialIoHandler::Create, |
+ base::ThreadTaskRunnerHandle::Get(), ui_task_runner), |
+ io_task_runner)), |
+ &request); |
} |
// static |
void SerialServiceImpl::CreateOnMessageLoop( |
- scoped_refptr<base::MessageLoopProxy> message_loop, |
- scoped_refptr<base::MessageLoopProxy> io_message_loop, |
- scoped_refptr<base::MessageLoopProxy> ui_message_loop, |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
mojo::InterfaceRequest<serial::SerialService> request) { |
- message_loop->PostTask(FROM_HERE, |
- base::Bind(&SerialServiceImpl::Create, |
- io_message_loop, |
- ui_message_loop, |
- base::Passed(&request))); |
+ task_runner->PostTask(FROM_HERE, |
+ base::Bind(&SerialServiceImpl::Create, io_task_runner, |
+ ui_task_runner, base::Passed(&request))); |
} |
void SerialServiceImpl::GetDevices( |