| Index: net/http/http_network_transaction.cc
|
| ===================================================================
|
| --- net/http/http_network_transaction.cc (revision 2678)
|
| +++ net/http/http_network_transaction.cc (working copy)
|
| @@ -489,12 +489,13 @@
|
| }
|
|
|
| int HttpNetworkTransaction::DoConnectComplete(int result) {
|
| + if (IsCertificateError(result))
|
| + result = HandleCertificateError(result);
|
| +
|
| if (result == OK) {
|
| next_state_ = STATE_WRITE_HEADERS;
|
| if (using_tunnel_)
|
| establishing_tunnel_ = true;
|
| - } else if (IsCertificateError(result)) {
|
| - result = HandleCertificateError(result);
|
| }
|
| return result;
|
| }
|
| @@ -509,11 +510,11 @@
|
| }
|
|
|
| int HttpNetworkTransaction::DoSSLConnectOverTunnelComplete(int result) {
|
| - if (result == OK) {
|
| + if (IsCertificateError(result))
|
| + result = HandleCertificateError(result);
|
| +
|
| + if (result == OK)
|
| next_state_ = STATE_WRITE_HEADERS;
|
| - } else if (IsCertificateError(result)) {
|
| - result = HandleCertificateError(result);
|
| - }
|
| return result;
|
| }
|
|
|
|
|