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

Unified Diff: components/cronet/android/cronet_upload_data_stream_adapter.cc

Issue 948503004: [Cronet] Enable chunked upload in CronetUrlRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/android/cronet_upload_data_stream_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_upload_data_stream_adapter.cc
diff --git a/components/cronet/android/cronet_upload_data_stream_adapter.cc b/components/cronet/android/cronet_upload_data_stream_adapter.cc
index 05ca1ce42ad5c4ba6b840fe3ba79bea4d19c4aff..4ac38b9467237da8e3227a7e909ddd2d8fb5ff35 100644
--- a/components/cronet/android/cronet_upload_data_stream_adapter.cc
+++ b/components/cronet/android/cronet_upload_data_stream_adapter.cc
@@ -87,7 +87,9 @@ void CronetUploadDataStreamAdapter::OnReadSuccess(int bytes_read,
DCHECK(read_in_progress_);
DCHECK(!rewind_in_progress_);
DCHECK(bytes_read > 0 || (final_chunk && bytes_read == 0));
- DCHECK(!is_chunked() || !final_chunk);
+ if (!is_chunked()) {
+ DCHECK(!final_chunk);
+ }
read_in_progress_ = false;
« no previous file with comments | « no previous file | components/cronet/android/cronet_upload_data_stream_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698