Refactor WebSocketTransportClientSocketPool's socket handing out code
Tries to make the code a little more readable to help debugging the associated bug. For the OK result, BoundNetLog::EndEventWithNetErrorCode() was called after BoundNetLog::EndEvent() in WebSocketTransportClientSocketPool::RequestSocket(). Fixed this to call only EndEvent(). Removed pre-condition checks before ActivateStalledRequest() which are already performed by its while loop. Added DCHECK_NE(error, OK) to FlushWithError() to make sure OK is never received from that path. Reordered some lines. R=yhirano@chromium.org,mmenke@chromium.org BUG=642363 Review-Url: https://codereview.chromium.org/2328453002 Cr-Commit-Position: refs/heads/master@{#419127}
Showing
Please register or sign in to comment