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

Unified Diff: device/serial/serial_io_handler_win.cc

Issue 1954543002: Remove handler from MessagePumpForIO::IOContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_observers
Patch Set: CR thestig #17 Created 4 years, 7 months 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 | « base/message_loop/message_pump_win.cc ('k') | ipc/ipc_channel_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_win.cc
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc
index 4c1010fbd833069eea446b172a5603502a28c2dd..1df4c3662828da9fc570c13e51e2c81433c2cd87 100644
--- a/device/serial/serial_io_handler_win.cc
+++ b/device/serial/serial_io_handler_win.cc
@@ -239,16 +239,8 @@ bool SerialIoHandlerWin::PostOpen() {
this);
comm_context_.reset(new base::MessageLoopForIO::IOContext());
- comm_context_->handler = this;
- memset(&comm_context_->overlapped, 0, sizeof(comm_context_->overlapped));
-
read_context_.reset(new base::MessageLoopForIO::IOContext());
- read_context_->handler = this;
- memset(&read_context_->overlapped, 0, sizeof(read_context_->overlapped));
-
write_context_.reset(new base::MessageLoopForIO::IOContext());
- write_context_->handler = this;
- memset(&write_context_->overlapped, 0, sizeof(write_context_->overlapped));
scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner =
base::ThreadTaskRunnerHandle::Get();
« no previous file with comments | « base/message_loop/message_pump_win.cc ('k') | ipc/ipc_channel_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698