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

Unified Diff: net/disk_cache/backend_impl.cc

Issue 3054012: Disk Cache: Replace the backend pointer of the ChildrenDeleter... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 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
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 53428)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -328,6 +328,7 @@
uint32 flags, base::MessageLoopProxy* thread,
Backend** backend,
CompletionCallback* callback) {
+ DCHECK(callback);
CacheCreator* creator = new CacheCreator(full_path, force, max_bytes, type,
flags, thread, backend, callback);
// This object will self-destroy when finished.
@@ -538,6 +539,7 @@
DCHECK(!num_refs_);
}
factory_.RevokeAll();
+ ptr_factory_.InvalidateWeakPtrs();
done_.Signal();
}

Powered by Google App Engine
This is Rietveld 408576698