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(); |
} |