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

Unified Diff: net/http/disk_based_cert_cache.cc

Issue 502163003: Remove implicit conversions from scoped_refptr to T* in net/http/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | net/http/disk_based_cert_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_based_cert_cache.cc
diff --git a/net/http/disk_based_cert_cache.cc b/net/http/disk_based_cert_cache.cc
index d7d3d2f723758a40d8db17844d17e712c76a167e..9b39d85264cc24c5d54b468a3fe0122362da0cda 100644
--- a/net/http/disk_based_cert_cache.cc
+++ b/net/http/disk_based_cert_cache.cc
@@ -255,7 +255,7 @@ int DiskBasedCertCache::WriteWorker::DoWrite() {
return entry_->WriteData(0 /* index */,
0 /* offset */,
- buffer_,
+ buffer_.get(),
write_data.size(),
io_callback_,
true /* truncate */);
@@ -456,7 +456,7 @@ int DiskBasedCertCache::ReadWorker::DoRead() {
io_buf_len_ = entry_->GetDataSize(0 /* index */);
buffer_ = new IOBuffer(io_buf_len_);
return entry_->ReadData(
- 0 /* index */, 0 /* offset */, buffer_, io_buf_len_, io_callback_);
+ 0 /* index */, 0 /* offset */, buffer_.get(), io_buf_len_, io_callback_);
}
int DiskBasedCertCache::ReadWorker::DoReadComplete(int rv) {
« no previous file with comments | « no previous file | net/http/disk_based_cert_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698