Commit 3ba2bf44 authored by ttuttle@chromium.org's avatar ttuttle@chromium.org

Simple Cache: Rename it to pending_it in DoomEntryFromHash

BUG=

Review URL: https://codereview.chromium.org/68533015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245316 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c5a957f
...@@ -565,13 +565,13 @@ int SimpleBackendImpl::DoomEntryFromHash(uint64 entry_hash, ...@@ -565,13 +565,13 @@ int SimpleBackendImpl::DoomEntryFromHash(uint64 entry_hash,
Entry** entry = new Entry*(); Entry** entry = new Entry*();
scoped_ptr<Entry*> scoped_entry(entry); scoped_ptr<Entry*> scoped_entry(entry);
base::hash_map<uint64, std::vector<Closure> >::iterator it = base::hash_map<uint64, std::vector<Closure> >::iterator pending_it =
entries_pending_doom_.find(entry_hash); entries_pending_doom_.find(entry_hash);
if (it != entries_pending_doom_.end()) { if (pending_it != entries_pending_doom_.end()) {
Callback<int(const net::CompletionCallback&)> operation = Callback<int(const net::CompletionCallback&)> operation =
base::Bind(&SimpleBackendImpl::DoomEntryFromHash, base::Bind(&SimpleBackendImpl::DoomEntryFromHash,
base::Unretained(this), entry_hash); base::Unretained(this), entry_hash);
it->second.push_back(base::Bind(&RunOperationAndCallback, pending_it->second.push_back(base::Bind(&RunOperationAndCallback,
operation, callback)); operation, callback));
return net::ERR_IO_PENDING; return net::ERR_IO_PENDING;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment