Index: content/browser/loader/resource_loader.cc |
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc |
index df90d4bed87b6964ae16ab9f1e62841372a5ce41..21e0b0056130b542c2a5befefc6ba2880edf2635 100644 |
--- a/content/browser/loader/resource_loader.cc |
+++ b/content/browser/loader/resource_loader.cc |
@@ -159,7 +159,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; |
} |