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

Unified Diff: net/disk_cache/flash/flash_entry_impl.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/disk_cache/file_posix.cc ('k') | net/disk_cache/flash/internal_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/flash_entry_impl.cc
diff --git a/net/disk_cache/flash/flash_entry_impl.cc b/net/disk_cache/flash/flash_entry_impl.cc
index 3d64b03e37dfd2501ef4c069cf979a37df6e6494..01224029628bdb0b4a7e49b5703f053731cdd9a2 100644
--- a/net/disk_cache/flash/flash_entry_impl.cc
+++ b/net/disk_cache/flash/flash_entry_impl.cc
@@ -31,14 +31,15 @@ FlashEntryImpl::FlashEntryImpl(int32 id,
}
int FlashEntryImpl::Init(const CompletionCallback& callback) {
- if (new_internal_entry_) {
+ if (new_internal_entry_.get()) {
DCHECK(callback.is_null());
init_ = true;
return net::OK;
}
- DCHECK(!callback.is_null() && old_internal_entry_);
+ DCHECK(!callback.is_null() && old_internal_entry_.get());
callback_ = callback;
- PostTaskAndReplyWithResult(cache_thread_, FROM_HERE,
+ PostTaskAndReplyWithResult(cache_thread_.get(),
+ FROM_HERE,
Bind(&InternalEntry::Init, old_internal_entry_),
Bind(&FlashEntryImpl::OnInitComplete, this));
return net::ERR_IO_PENDING;
« no previous file with comments | « net/disk_cache/file_posix.cc ('k') | net/disk_cache/flash/internal_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698