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

Unified Diff: net/disk_cache/simple/simple_entry_impl.cc

Issue 508733002: Remove implicit conversions from scoped_refptr to T* in net/disk_cache/ (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/disk_cache/simple/simple_backend_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_entry_impl.cc
diff --git a/net/disk_cache/simple/simple_entry_impl.cc b/net/disk_cache/simple/simple_entry_impl.cc
index 98ad8a7392439920bacbf3c6a5a830ebef532923..a6de8782b24c8d6706336a0b3f792b7a800f9b35 100644
--- a/net/disk_cache/simple/simple_entry_impl.cc
+++ b/net/disk_cache/simple/simple_entry_impl.cc
@@ -1079,10 +1079,11 @@ void SimpleEntryImpl::GetAvailableRangeInternal(
void SimpleEntryImpl::DoomEntryInternal(const CompletionCallback& callback) {
PostTaskAndReplyWithResult(
- worker_pool_, FROM_HERE,
+ worker_pool_.get(),
+ FROM_HERE,
base::Bind(&SimpleSynchronousEntry::DoomEntry, path_, entry_hash_),
- base::Bind(&SimpleEntryImpl::DoomOperationComplete, this, callback,
- state_));
+ base::Bind(
+ &SimpleEntryImpl::DoomOperationComplete, this, callback, state_));
state_ = STATE_IO_PENDING;
}
@@ -1115,7 +1116,7 @@ void SimpleEntryImpl::CreationOperationComplete(
state_ = STATE_READY;
synchronous_entry_ = in_results->sync_entry;
- if (in_results->stream_0_data) {
+ if (in_results->stream_0_data.get()) {
stream_0_data_ = in_results->stream_0_data;
// The crc was read in SimpleSynchronousEntry.
crc_check_state_[0] = CRC_CHECK_DONE;
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698