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

Unified Diff: net/spdy/spdy_session.cc

Issue 1579213006: Remove unused SPDY/3 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trivial comparisons; change non-trivial ones. Created 4 years, 11 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/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 61f9e5fc0b5bd93d280b93a1c90562132ab6990b..faa0459c8f8acad88b4b4bfd75a155fded152510 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -759,13 +759,9 @@ void SpdySession::InitializeWithSocket(
if (protocol_ == kProtoHTTP2)
send_connection_header_prefix_ = true;
- if (protocol_ >= kProtoSPDY31) {
- flow_control_state_ = FLOW_CONTROL_STREAM_AND_SESSION;
- session_send_window_size_ = GetDefaultInitialWindowSize(protocol_);
- session_recv_window_size_ = GetDefaultInitialWindowSize(protocol_);
- } else {
- flow_control_state_ = FLOW_CONTROL_STREAM;
- }
+ flow_control_state_ = FLOW_CONTROL_STREAM_AND_SESSION;
+ session_send_window_size_ = GetDefaultInitialWindowSize(protocol_);
+ session_recv_window_size_ = GetDefaultInitialWindowSize(protocol_);
buffered_spdy_framer_.reset(
new BufferedSpdyFramer(NextProtoToSpdyMajorVersion(protocol_),
@@ -2857,7 +2853,7 @@ void SpdySession::SendInitialData() {
}
}
- if (protocol_ <= kProtoSPDY31) {
+ if (protocol_ == kProtoSPDY31) {
// Finally, notify the server about the settings they have
// previously told us to use when communicating with them (after
// applying them).
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698