| Index: net/disk_cache/simple/simple_backend_impl.cc
|
| diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
|
| index 5c0445aeba61c7cff12331b83c15631d7c0eda69..76e8edb3d5db2ad220f1d942ccedbaab6b8b6a61 100644
|
| --- a/net/disk_cache/simple/simple_backend_impl.cc
|
| +++ b/net/disk_cache/simple/simple_backend_impl.cc
|
| @@ -289,7 +289,7 @@ void SimpleBackendImpl::OnDoomStart(uint64_t entry_hash) {
|
|
|
| void SimpleBackendImpl::OnDoomComplete(uint64_t entry_hash) {
|
| DCHECK_EQ(1u, entries_pending_doom_.count(entry_hash));
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator it =
|
| entries_pending_doom_.find(entry_hash);
|
| std::vector<Closure> to_run_closures;
|
| to_run_closures.swap(it->second);
|
| @@ -378,7 +378,7 @@ int SimpleBackendImpl::OpenEntry(const std::string& key,
|
|
|
| // TODO(gavinp): Factor out this (not quite completely) repetitive code
|
| // block from OpenEntry/CreateEntry/DoomEntry.
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator it =
|
| entries_pending_doom_.find(entry_hash);
|
| if (it != entries_pending_doom_.end()) {
|
| Callback<int(const net::CompletionCallback&)> operation =
|
| @@ -406,7 +406,7 @@ int SimpleBackendImpl::CreateEntry(const std::string& key,
|
| DCHECK_LT(0u, key.size());
|
| const uint64_t entry_hash = simple_util::GetEntryHashKey(key);
|
|
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator it =
|
| entries_pending_doom_.find(entry_hash);
|
| if (it != entries_pending_doom_.end()) {
|
| Callback<int(const net::CompletionCallback&)> operation =
|
| @@ -425,7 +425,7 @@ int SimpleBackendImpl::DoomEntry(const std::string& key,
|
| const net::CompletionCallback& callback) {
|
| const uint64_t entry_hash = simple_util::GetEntryHashKey(key);
|
|
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator it =
|
| entries_pending_doom_.find(entry_hash);
|
| if (it != entries_pending_doom_.end()) {
|
| Callback<int(const net::CompletionCallback&)> operation =
|
| @@ -631,7 +631,7 @@ scoped_refptr<SimpleEntryImpl> SimpleBackendImpl::CreateOrFindActiveEntry(
|
| int SimpleBackendImpl::OpenEntryFromHash(uint64_t entry_hash,
|
| Entry** entry,
|
| const CompletionCallback& callback) {
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator it =
|
| entries_pending_doom_.find(entry_hash);
|
| if (it != entries_pending_doom_.end()) {
|
| Callback<int(const net::CompletionCallback&)> operation =
|
| @@ -660,7 +660,7 @@ int SimpleBackendImpl::DoomEntryFromHash(uint64_t entry_hash,
|
| Entry** entry = new Entry*();
|
| std::unique_ptr<Entry*> scoped_entry(entry);
|
|
|
| - base::hash_map<uint64_t, std::vector<Closure>>::iterator pending_it =
|
| + std::unordered_map<uint64_t, std::vector<Closure>>::iterator pending_it =
|
| entries_pending_doom_.find(entry_hash);
|
| if (pending_it != entries_pending_doom_.end()) {
|
| Callback<int(const net::CompletionCallback&)> operation =
|
|
|