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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 9321003: net: Make UploadData::GetContentLength() asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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/browser/renderer_host/resource_dispatcher_host.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host.cc b/content/browser/renderer_host/resource_dispatcher_host.cc
index d915806d302b3dcf87634bac2f52792debf74718..d399113ba20a2caa99e15fa06cb292e62eaf0ec0 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host.cc
@@ -618,7 +618,7 @@ void ResourceDispatcherHost::BeginRequest(
if (request_data.upload_data) {
request->set_upload(request_data.upload_data);
// This results in performing file IO. crbug.com/112607.
- upload_size = request_data.upload_data->GetContentLength();
+ upload_size = request_data.upload_data->GetContentLengthSyncHack();
}
// Install a CrossSiteResourceHandler if this request is coming from a

Powered by Google App Engine
This is Rietveld 408576698