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

Unified Diff: net/quic/chromium/quic_stream_factory.cc

Issue 2325733004: Makes QuicChromiumPacketWriter use the delegate for interacting with the connection. (Closed)
Patch Set: Nits fixed. Created 4 years, 3 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 | « net/quic/chromium/quic_chromium_packet_writer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.cc
diff --git a/net/quic/chromium/quic_stream_factory.cc b/net/quic/chromium/quic_stream_factory.cc
index 40f55192108b7229761a5b0895bee281efb652f9..07065e3941fca3cfe58525a3593c9e11e5822857 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -1637,7 +1637,7 @@ void QuicStreamFactory::MigrateSession(QuicChromiumClientSession* session,
session->net_log()));
std::unique_ptr<QuicChromiumPacketWriter> new_writer(
new QuicChromiumPacketWriter(socket.get()));
- new_writer->Initialize(session, session->connection());
+ new_writer->set_delegate(session);
if (!session->MigrateToSocket(std::move(socket), std::move(new_reader),
std::move(new_writer), packet)) {
@@ -1860,7 +1860,7 @@ int QuicStreamFactory::CreateSession(
std::move(socket_performance_watcher), net_log.net_log());
all_sessions_[*session] = key; // owning pointer
- writer->Initialize(*session, connection);
+ writer->set_delegate(*session);
(*session)->Initialize();
bool closed_during_initialize = !base::ContainsKey(all_sessions_, *session) ||
« no previous file with comments | « net/quic/chromium/quic_chromium_packet_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698