summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data_stream.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 23:19:33 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 23:19:33 +0000
commitb1f031ddf0723e5a4811bf9fa6fdda68c97633de (patch)
tree81be42f2b7c8cbf8e2bb5aaea1f1b1a6213413ca /net/base/upload_data_stream.cc
parent136ba26595ceafeb57a5c4d524caf7f87b95daf3 (diff)
downloadchromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.zip
chromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.tar.gz
chromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.tar.bz2
Use CHECK_* in net
Review URL: http://codereview.chromium.org/660404 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.cc')
-rw-r--r--net/base/upload_data_stream.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc
index 221ef28..21f4ce8 100644
--- a/net/base/upload_data_stream.cc
+++ b/net/base/upload_data_stream.cc
@@ -27,8 +27,7 @@ UploadDataStream::~UploadDataStream() {
}
void UploadDataStream::DidConsume(size_t num_bytes) {
- // TODO(vandebo): Change back to a DCHECK when issue 27870 is resolved.
- CHECK(num_bytes <= buf_len_);
+ DCHECK_LE(num_bytes, buf_len_);
DCHECK(!eof_);
buf_len_ -= num_bytes;