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

Unified Diff: base/trace_event/trace_log.h

Issue 2830093003: Replace uses of hash_map in //base (Closed)
Patch Set: WebKit callers Created 3 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: base/trace_event/trace_log.h
diff --git a/base/trace_event/trace_log.h b/base/trace_event/trace_log.h
index 88b6e588e406e70c064ebaea09918033354e15fc..0a13df6b8ec739d20e37f720158d4bc77a0e507d 100644
--- a/base/trace_event/trace_log.h
+++ b/base/trace_event/trace_log.h
@@ -10,10 +10,10 @@
#include <memory>
#include <string>
+#include <unordered_map>
#include <vector>
#include "base/atomicops.h"
-#include "base/containers/hash_tables.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
@@ -452,14 +452,14 @@ class BASE_EXPORT TraceLog : public MemoryDumpProvider {
async_observers_;
std::string process_name_;
- base::hash_map<int, std::string> process_labels_;
+ std::unordered_map<int, std::string> process_labels_;
int process_sort_index_;
- base::hash_map<int, int> thread_sort_indices_;
- base::hash_map<int, std::string> thread_names_;
+ std::unordered_map<int, int> thread_sort_indices_;
+ std::unordered_map<int, std::string> thread_names_;
// The following two maps are used only when ECHO_TO_CONSOLE.
- base::hash_map<int, std::stack<TimeTicks>> thread_event_start_times_;
- base::hash_map<std::string, int> thread_colors_;
+ std::unordered_map<int, std::stack<TimeTicks>> thread_event_start_times_;
+ std::unordered_map<std::string, int> thread_colors_;
TimeTicks buffer_limit_reached_timestamp_;

Powered by Google App Engine
This is Rietveld 408576698