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

Unified Diff: net/url_request/view_cache_helper.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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_unittest.cc ('k') | net/url_request/view_cache_helper_unittest.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 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()));
}
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | net/url_request/view_cache_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698