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

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

Issue 13880016: Make SimpleEntryImpl ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove flaky dchecks Created 7 years, 8 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/simple/simple_index.cc
diff --git a/net/disk_cache/simple/simple_index.cc b/net/disk_cache/simple/simple_index.cc
index c87b3c8a7019ca72061ae9e8d34686006ac6164b..31ea158524fc80adad16d8cc80944bb8e89f3fe4 100644
--- a/net/disk_cache/simple/simple_index.cc
+++ b/net/disk_cache/simple/simple_index.cc
@@ -81,13 +81,12 @@ SimpleIndex::SimpleIndex(
SimpleIndex::~SimpleIndex() {
DCHECK(io_thread_checker_.CalledOnValidThread());
-
}
void SimpleIndex::Initialize() {
DCHECK(io_thread_checker_.CalledOnValidThread());
IndexCompletionCallback merge_callback =
- base::Bind(&SimpleIndex::MergeInitializingSet, AsWeakPtr());
+ base::Bind(&SimpleIndex::MergeInitializingSet, this);
base::WorkerPool::PostTask(FROM_HERE,
base::Bind(&SimpleIndex::LoadFromDisk,
index_filename_,

Powered by Google App Engine
This is Rietveld 408576698