summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_url_request_job.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_url_request_job.cc')
-rw-r--r--webkit/appcache/appcache_url_request_job.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/appcache/appcache_url_request_job.cc b/webkit/appcache/appcache_url_request_job.cc
index bf52950..ea9ea9a 100644
--- a/webkit/appcache/appcache_url_request_job.cc
+++ b/webkit/appcache/appcache_url_request_job.cc
@@ -123,9 +123,9 @@ const net::HttpResponseInfo* AppCacheURLRequestJob::http_info() const {
}
void AppCacheURLRequestJob::SetupRangeResponse() {
- DCHECK(is_range_request() && reader_.get() &&
+ DCHECK(is_range_request() && info_.get() && reader_.get() &&
is_delivering_appcache_response());
- int resource_size = reader_->GetResourceSize();
+ int resource_size = static_cast<int>(info_->response_data_size());
if (resource_size < 0 || !range_requested_.ComputeBounds(resource_size)) {
range_requested_ = net::HttpByteRange();
return;