Chromium Code Reviews| Index: net/socket/ssl_client_socket_nss.cc |
| =================================================================== |
| --- net/socket/ssl_client_socket_nss.cc (revision 113045) |
| +++ net/socket/ssl_client_socket_nss.cc (working copy) |
| @@ -482,6 +482,12 @@ |
| // static |
| void SSLClientSocketNSS::ClearSessionCache() { |
| + // Initialize the NSS SSL library in a threadsafe way. This also |
| + // initializes the NSS base library. |
| + EnsureNSSSSLInit(); |
| + if (!NSS_IsInitialized()) |
| + return; |
| + |
| SSL_ClearSessionCache(); |
| } |