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

Unified Diff: net/socket/ssl_client_socket_nss.cc

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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_flags.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_nss.cc
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc
index 7366c166fb788ead37d83937a4121f82bfa02c47..e20b28a3512b05b67dbfbbc2a9a4d05a9f7fc206 100644
--- a/net/socket/ssl_client_socket_nss.cc
+++ b/net/socket/ssl_client_socket_nss.cc
@@ -1794,6 +1794,11 @@ int SSLClientSocketNSS::Core::DoWriteLoop(int result) {
}
int SSLClientSocketNSS::Core::DoHandshake() {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "424386 SSLClientSocketNSS::Core::DoHandshake"));
+
DCHECK(OnNSSTaskRunner());
int net_error = OK;
@@ -1845,6 +1850,11 @@ int SSLClientSocketNSS::Core::DoHandshake() {
}
int SSLClientSocketNSS::Core::DoGetDBCertComplete(int result) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "424386 SSLClientSocketNSS::Core::DoGetDBCertComplete"));
+
SECStatus rv;
PostOrRunCallback(
FROM_HERE,
@@ -2029,6 +2039,11 @@ int SSLClientSocketNSS::Core::DoPayloadWrite() {
// transport socket. Return true if some I/O performed, false
// otherwise (error or ERR_IO_PENDING).
bool SSLClientSocketNSS::Core::DoTransportIO() {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "424386 SSLClientSocketNSS::Core::DoTransportIO"));
+
DCHECK(OnNSSTaskRunner());
bool network_moved = false;
@@ -2438,6 +2453,10 @@ void SSLClientSocketNSS::Core::UpdateStapledOCSPResponse() {
}
void SSLClientSocketNSS::Core::UpdateConnectionStatus() {
+ // Note: This function may be called multiple times for a single connection
+ // if renegotiations occur.
+ nss_handshake_state_.ssl_connection_status = 0;
+
SSLChannelInfo channel_info;
SECStatus ok = SSL_GetChannelInfo(nss_fd_,
&channel_info, sizeof(channel_info));
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698