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

Unified Diff: blimp/net/blimp_connection.cc

Issue 1452823011: Make PacketReader/PacketWriter interfaces async-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address wez,haibin feedback Created 5 years, 1 month 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 | « no previous file | blimp/net/blimp_connection_unittest.cc » ('j') | blimp/net/blimp_message_pump.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_connection.cc
diff --git a/blimp/net/blimp_connection.cc b/blimp/net/blimp_connection.cc
index e7db062b8e9bf8814bbc7f58f64a7e3cce4e120e..df54406b3fabd840bd87a2e3bd3c266a61983b5d 100644
--- a/blimp/net/blimp_connection.cc
+++ b/blimp/net/blimp_connection.cc
@@ -75,11 +75,7 @@ void BlimpMessageSender::ProcessMessage(
write_packet_callback_.Reset(base::Bind(
Wez 2015/11/30 21:33:24 You only need write_packet_callback_ to ensure tha
Kevin M 2015/12/01 01:50:27 Done.
&BlimpMessageSender::OnWritePacketComplete, base::Unretained(this)));
pending_process_msg_callback_ = callback;
- int result = writer_->WritePacket(buffer_, write_packet_callback_.callback());
- if (result != net::ERR_IO_PENDING) {
- base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(write_packet_callback_.callback(), result));
- }
+ writer_->WritePacket(buffer_, write_packet_callback_.callback());
}
void BlimpMessageSender::OnWritePacketComplete(int result) {
« no previous file with comments | « no previous file | blimp/net/blimp_connection_unittest.cc » ('j') | blimp/net/blimp_message_pump.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698