Index: content/browser/loader/resource_loader.cc |
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc |
index 687b54d556f698e43ce064a267dd082ba68d0ceb..d68c0e1d6ffce87b14e819dd8a9e12bfc7c61a16 100644 |
--- a/content/browser/loader/resource_loader.cc |
+++ b/content/browser/loader/resource_loader.cc |
@@ -158,7 +158,8 @@ void ResourceLoader::ReportUploadProgress() { |
bool too_much_time_passed = time_since_last > kOneSecond; |
if (is_finished || enough_new_progress || too_much_time_passed) { |
- if (request_->load_flags() & net::LOAD_ENABLE_UPLOAD_PROGRESS) { |
+ ResourceRequestInfoImpl* info = GetRequestInfo(); |
+ if (info->is_upload_progress_enabled()) { |
handler_->OnUploadProgress(progress.position(), progress.size()); |
waiting_for_upload_progress_ack_ = true; |
} |