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

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, 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
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 c253224875761ee3ed365adab35128d6747a91ef..5b434874e0d006ee16b30be46a7efb63f4b45ba6 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host.cc
@@ -647,7 +647,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