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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 669073003: Get rid of net::LOAD_ENABLE_UPLOAD_PROGRESS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 8c364a675ceb5e9e6e8c1270e4596d8ef30e2416..d2a97975657eb7bf5da712e2e6ce523cc16a30b8 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -445,6 +445,8 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
;
request_info.load_flags = GetLoadFlagsForWebURLRequest(request);
request_info.enable_load_timing = true;
+ if (request.reportUploadProgress())
+ request_info.enable_upload_progress = true;
mmenke 2014/10/22 18:23:37 nit: request_info.enable_upload_progress = reques
// requestor_pid only needs to be non-zero if the request originates outside
// the render process, so we can use requestorProcessID even for requests
// from in-process plugins.

Powered by Google App Engine
This is Rietveld 408576698