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

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

Issue 1502373009: Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include. What. You. Use. Created 5 years 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
« no previous file with comments | « net/base/port_util.cc ('k') | net/server/web_socket_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file.cc
diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc
index 3828649402d72220037d18e2d901d098a8104d8a..e44a809f836f58217c6824254ed129d32dd8dfd2 100644
--- a/net/disk_cache/simple/simple_index_file.cc
+++ b/net/disk_cache/simple/simple_index_file.cc
@@ -422,10 +422,7 @@ void SimpleIndexFile::Deserialize(const char* data, int data_len,
return;
}
-#if !defined(OS_WIN)
- // TODO(gavinp): Consider using std::unordered_map.
- entries->resize(index_metadata.GetNumberOfEntries() + kExtraSizeForMerge);
-#endif
+ entries->reserve(index_metadata.GetNumberOfEntries() + kExtraSizeForMerge);
while (entries->size() < index_metadata.GetNumberOfEntries()) {
uint64 hash_key;
EntryMetadata entry_metadata;
« no previous file with comments | « net/base/port_util.cc ('k') | net/server/web_socket_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698