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

Unified Diff: mojo/edk/system/channel_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 | « ipc/ipc_channel_win.cc ('k') | net/base/file_stream_context_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_win.cc
diff --git a/mojo/edk/system/channel_win.cc b/mojo/edk/system/channel_win.cc
index d04edaf580a92a1c1f7ec10a8befcbb5eb0763b3..816c849411938cb91f1ce71a13b69cb88744c463 100644
--- a/mojo/edk/system/channel_win.cc
+++ b/mojo/edk/system/channel_win.cc
@@ -80,11 +80,6 @@ class ChannelWin : public Channel,
io_task_runner_(io_task_runner) {
sentinel_ = ~reinterpret_cast<uintptr_t>(this);
CHECK(handle_.is_valid());
- memset(&read_context_, 0, sizeof(read_context_));
- read_context_.handler = this;
-
- memset(&write_context_, 0, sizeof(write_context_));
- write_context_.handler = this;
}
void Start() override {
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | net/base/file_stream_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698