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

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

Issue 947203002: [Cronet] Move PostTask out of DCHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_upload_data_stream_delegate.cc
diff --git a/components/cronet/android/cronet_upload_data_stream_delegate.cc b/components/cronet/android/cronet_upload_data_stream_delegate.cc
index 323714eb9209dd5e062a1d926770c9367abd065d..4792bdfd044cdb9ebc63ba85054b4b610929f7a5 100644
--- a/components/cronet/android/cronet_upload_data_stream_delegate.cc
+++ b/components/cronet/android/cronet_upload_data_stream_delegate.cc
@@ -79,9 +79,9 @@ void CronetUploadDataStreamDelegate::OnReadSucceeded(JNIEnv* env,
DCHECK(bytes_read > 0 || (final_chunk && bytes_read == 0));
buffer_ = nullptr;
- DCHECK(network_task_runner_->PostTask(
+ network_task_runner_->PostTask(
FROM_HERE, base::Bind(&CronetUploadDataStreamAdapter::OnReadSuccess,
- adapter_, bytes_read, final_chunk)));
+ adapter_, bytes_read, final_chunk));
}
void CronetUploadDataStreamDelegate::OnRewindSucceeded(JNIEnv* env,
« 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