diff options
Diffstat (limited to 'device/serial/serial_io_handler_win.cc')
-rw-r--r-- | device/serial/serial_io_handler_win.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc index ac669ad..17d7db1 100644 --- a/device/serial/serial_io_handler_win.cc +++ b/device/serial/serial_io_handler_win.cc @@ -134,8 +134,10 @@ serial::StopBits StopBitsConstantToEnum(int stop_bits) { // static scoped_refptr<SerialIoHandler> SerialIoHandler::Create( - scoped_refptr<base::MessageLoopProxy> file_thread_message_loop) { - return new SerialIoHandlerWin(file_thread_message_loop); + scoped_refptr<base::MessageLoopProxy> file_thread_message_loop, + scoped_refptr<base::MessageLoopProxy> ui_thread_message_loop) { + return new SerialIoHandlerWin(file_thread_message_loop, + ui_thread_message_loop); } bool SerialIoHandlerWin::PostOpen() { @@ -239,8 +241,9 @@ void SerialIoHandlerWin::CancelWriteImpl() { } SerialIoHandlerWin::SerialIoHandlerWin( - scoped_refptr<base::MessageLoopProxy> file_thread_message_loop) - : SerialIoHandler(file_thread_message_loop), + scoped_refptr<base::MessageLoopProxy> file_thread_message_loop, + scoped_refptr<base::MessageLoopProxy> ui_thread_message_loop) + : SerialIoHandler(file_thread_message_loop, ui_thread_message_loop), event_mask_(0), is_comm_pending_(false) { } |