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

Unified Diff: net/url_request/view_cache_helper.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fde34423d6e907ed1e1ce0b2e694816517d9e00d..9ceaeb8890c094f38241d41ab9b6760fd487ca6c 100644
--- a/net/url_request/view_cache_helper.cc
+++ b/net/url_request/view_cache_helper.cc
@@ -287,7 +287,7 @@ 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()));
}
@@ -297,7 +297,7 @@ int ViewCacheHelper::DoReadResponseComplete(int result) {
bool truncated;
if (HttpCache::ParseResponseInfo(buf_->data(), buf_len_, &response,
&truncated) &&
- response.headers) {
+ response.headers.get()) {
if (truncated)
data_->append("<pre>RESPONSE_INFO_TRUNCATED</pre>");
@@ -332,7 +332,7 @@ 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()));
}
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698