Index: net/quic/quic_client_session.cc |
=================================================================== |
--- net/quic/quic_client_session.cc (revision 174485) |
+++ net/quic/quic_client_session.cc (working copy) |
@@ -53,9 +53,10 @@ |
}; |
int QuicClientSession::CryptoConnect(const CompletionCallback& callback) { |
- CryptoHandshakeMessage message; |
- message.tag = kCHLO; |
- crypto_stream_.SendHandshakeMessage(message); |
+ if (!crypto_stream_.CryptoConnect()) { |
+ // TODO(wtc): map to a net error code. |
Ryan Hamilton
2012/12/22 22:31:32
Not sure about this comment. Isn't ERR_CONNECTION
|
+ return ERR_CONNECTION_FAILED; |
+ } |
if (IsCryptoHandshakeComplete()) { |
return OK; |