diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:16:43 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:16:43 +0000 |
commit | d7fd17806126d4998ea0ac36eac95ea031761219 (patch) | |
tree | 363a1689a60dcf968281827d2128eb3546c7c605 /net/socket_stream | |
parent | 243b4f0b3c3aa4e48064ae01337ba2554d367074 (diff) | |
download | chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.zip chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.tar.gz chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.tar.bz2 |
NetLog: Log net error codes on a lot of EndEvents.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6349083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream')
-rw-r--r-- | net/socket_stream/socket_stream.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc index b65fa6e..7733c5d 100644 --- a/net/socket_stream/socket_stream.cc +++ b/net/socket_stream/socket_stream.cc @@ -455,9 +455,8 @@ void SocketStream::DoLoop(int result) { // close the connection. if (state != STATE_READ_WRITE && result < ERR_IO_PENDING) { DCHECK_EQ(next_state_, STATE_CLOSE); - net_log_.EndEvent( - NetLog::TYPE_SOCKET_STREAM_CONNECT, - make_scoped_refptr(new NetLogIntegerParameter("net_error", result))); + net_log_.EndEventWithNetErrorCode( + NetLog::TYPE_SOCKET_STREAM_CONNECT, result); } } while (result != ERR_IO_PENDING); } |