| Index: net/url_request/view_cache_helper.cc
|
| diff --git a/net/url_request/view_cache_helper.cc b/net/url_request/view_cache_helper.cc
|
| index 9f7f05e101fcf3e536620395fec6b82856845110..9ca2d41ca199995ad09ca3dc9b69addf72828ca8 100644
|
| --- a/net/url_request/view_cache_helper.cc
|
| +++ b/net/url_request/view_cache_helper.cc
|
| @@ -288,7 +288,10 @@ int ViewCacheHelper::DoReadResponse() {
|
|
|
| buf_ = new IOBuffer(buf_len_);
|
| return entry_->ReadData(
|
| - 0, 0, buf_, buf_len_,
|
| + 0,
|
| + 0,
|
| + buf_.get(),
|
| + buf_len_,
|
| base::Bind(&ViewCacheHelper::OnIOComplete, weak_factory_.GetWeakPtr()));
|
| }
|
|
|
| @@ -296,9 +299,9 @@ int ViewCacheHelper::DoReadResponseComplete(int result) {
|
| if (result && result == buf_len_) {
|
| HttpResponseInfo response;
|
| bool truncated;
|
| - if (HttpCache::ParseResponseInfo(buf_->data(), buf_len_, &response,
|
| - &truncated) &&
|
| - response.headers) {
|
| + if (HttpCache::ParseResponseInfo(
|
| + buf_->data(), buf_len_, &response, &truncated) &&
|
| + response.headers.get()) {
|
| if (truncated)
|
| data_->append("<pre>RESPONSE_INFO_TRUNCATED</pre>");
|
|
|
| @@ -333,7 +336,10 @@ int ViewCacheHelper::DoReadData() {
|
|
|
| buf_ = new IOBuffer(buf_len_);
|
| return entry_->ReadData(
|
| - index_, 0, buf_, buf_len_,
|
| + index_,
|
| + 0,
|
| + buf_.get(),
|
| + buf_len_,
|
| base::Bind(&ViewCacheHelper::OnIOComplete, weak_factory_.GetWeakPtr()));
|
| }
|
|
|
|
|