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

Unified Diff: net/http/disk_cache_based_quic_server_info.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 | « net/http/disk_based_cert_cache_unittest.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index 4cf036de3ba8f70e779b82f714a8486d82ee3671..1ca02844f5f10e0595ba7745dbd50f28978f4274 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -247,7 +247,7 @@ int DiskCacheBasedQuicServerInfo::DoRead() {
read_buffer_ = new IOBuffer(size);
state_ = READ_COMPLETE;
return entry_->ReadData(
- 0 /* index */, 0 /* offset */, read_buffer_, size, io_callback_);
+ 0 /* index */, 0 /* offset */, read_buffer_.get(), size, io_callback_);
}
int DiskCacheBasedQuicServerInfo::DoWrite() {
@@ -255,9 +255,12 @@ int DiskCacheBasedQuicServerInfo::DoWrite() {
memcpy(write_buffer_->data(), new_data_.data(), new_data_.size());
state_ = WRITE_COMPLETE;
- return entry_->WriteData(
- 0 /* index */, 0 /* offset */, write_buffer_, new_data_.size(),
- io_callback_, true /* truncate */);
+ return entry_->WriteData(0 /* index */,
+ 0 /* offset */,
+ write_buffer_.get(),
+ new_data_.size(),
+ io_callback_,
+ true /* truncate */);
}
int DiskCacheBasedQuicServerInfo::DoCreateOrOpen() {
« no previous file with comments | « net/http/disk_based_cert_cache_unittest.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698