Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: net/http/http_stream_parser.cc

Issue 2448193007: Fix a redundant expression (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_stream_parser.h" 5 #include "net/http/http_stream_parser.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 } 1223 }
1224 1224
1225 void HttpStreamParser::ValidateStatusLine(const std::string& status_line) { 1225 void HttpStreamParser::ValidateStatusLine(const std::string& status_line) {
1226 HttpStatusLineValidator::StatusLineStatus status = 1226 HttpStatusLineValidator::StatusLineStatus status =
1227 HttpStatusLineValidator::ValidateStatusLine(status_line); 1227 HttpStatusLineValidator::ValidateStatusLine(status_line);
1228 UMA_HISTOGRAM_ENUMERATION("Net.HttpStatusLineStatus", status, 1228 UMA_HISTOGRAM_ENUMERATION("Net.HttpStatusLineStatus", status,
1229 HttpStatusLineValidator::STATUS_LINE_MAX); 1229 HttpStatusLineValidator::STATUS_LINE_MAX);
1230 } 1230 }
1231 1231
1232 bool HttpStreamParser::SendRequestBuffersEmpty() { 1232 bool HttpStreamParser::SendRequestBuffersEmpty() {
1233 return request_headers_ == nullptr && request_body_send_buf_ == nullptr && 1233 return request_headers_ == nullptr && request_body_send_buf_ == nullptr;
1234 request_body_send_buf_ == nullptr;
Peter Kasting 2016/10/27 22:31:36 Based on line 610, are you sure this wasn't intend
hans 2016/10/27 22:39:09 The name suggests it's intending to check if *send
maksims (do not use this acc) 2016/10/28 04:53:09 Oh, that was a typo. It should have been a *read*
1235 } 1234 }
1236 1235
1237 } // namespace net 1236 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698