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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 years, 9 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/quic_session_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index a36449099a8a332654519062fed8f4f452f0cfc8..b5db6e1eef4d37e20b21e09bc684f118a465bd6b 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -1079,14 +1079,10 @@ int QuicStreamFactory::CreateSession(const QuicServerId& server_id,
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422516 QuicStreamFactory::CreateSession4"));
- QuicConnection* connection = new QuicConnection(connection_id,
- addr,
- helper_.get(),
- packet_writer_factory,
- true /* owns_writer */,
- false /* is_server */,
- server_id.is_https(),
- supported_versions_);
+ QuicConnection* connection = new QuicConnection(
+ connection_id, addr, helper_.get(), packet_writer_factory,
+ true /* owns_writer */, Perspective::IS_CLIENT, server_id.is_https(),
+ supported_versions_);
connection->set_max_packet_length(max_packet_length_);
// TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed.
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698