Index: webkit/tools/test_shell/simple_resource_loader_bridge.cc |
diff --git a/webkit/tools/test_shell/simple_resource_loader_bridge.cc b/webkit/tools/test_shell/simple_resource_loader_bridge.cc |
index 8f76c2b4b6d15b2ace514b068d0ab78c9a18db18..cd29965003e54ce5d30ed761ea6ab4617d773872 100644 |
--- a/webkit/tools/test_shell/simple_resource_loader_bridge.cc |
+++ b/webkit/tools/test_shell/simple_resource_loader_bridge.cc |
@@ -534,7 +534,9 @@ class RequestProxy : public net::URLRequest::Delegate, |
return; |
} |
- uint64 size = request_->get_upload()->GetContentLength(); |
+ // GetContentLengthSync() may perform file IO, but it's ok here, as file |
+ // IO is not prohibited in IOThread defined in the file. |
+ uint64 size = request_->get_upload()->GetContentLengthSync(); |
uint64 position = request_->GetUploadProgress(); |
if (position == last_upload_position_) |
return; // no progress made since last time |