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

Issue 2371943003: Remove |certificate_error_code| and SpdySession::TryAccessStream(). (Closed)

Created:
4 years, 2 months ago by Bence
Modified:
4 years, 2 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove |certificate_error_code| and SpdySession::TryAccessStream(). SpdySessionPool::CreateAvailableSessionFromSocket() is always called with a hardcoded OK value for its |certificate_error_code| argument, so this can be removed. SpdySession::InitializeWithSocket() is only called from SpdySessionPool::CreateAvailableSessionFromSocket() with |certificate_error_code == OK|, so that argument can be removed as well. Then SpdySession::certificate_error_code_ member is always OK, so that can be removed as well. This makes SpdySession::TryAccessStream() always return OK, so that can also be removed. Metrics show that SpdyProtocolErrorDetails::PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION is almost never (1e-11 of all counts) logged in Net.SpdySessionErrorDetails2. BUG=624073 Committed: https://crrev.com/2c06a30cf92373b0cb4b721a4a8dac6d72635b93 Cr-Commit-Position: refs/heads/master@{#421250}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -64 lines) Patch
M net/http/http_proxy_client_socket_wrapper.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session.h View 3 chunks +1 line, -14 lines 1 comment Download
M net/spdy/spdy_session.cc View 6 chunks +3 lines, -38 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 2 chunks +1 line, -5 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 2 chunks +1 line, -3 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Bence
Ryan: PTAL. Thank you.
4 years, 2 months ago (2016-09-27 16:35:43 UTC) #6
Ryan Hamilton
lgtm nice sleuthing! https://codereview.chromium.org/2371943003/diff/1/net/spdy/spdy_session.h File net/spdy/spdy_session.h (left): https://codereview.chromium.org/2371943003/diff/1/net/spdy/spdy_session.h#oldcode337 net/spdy/spdy_session.h:337: // ERR_IO_PENDING. OH! I'll bet this ...
4 years, 2 months ago (2016-09-27 17:17:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371943003/1
4 years, 2 months ago (2016-09-27 17:23:58 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-27 17:31:26 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 17:34:01 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2c06a30cf92373b0cb4b721a4a8dac6d72635b93
Cr-Commit-Position: refs/heads/master@{#421250}

Powered by Google App Engine
This is Rietveld 408576698