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

Unified Diff: components/rappor/sampler.h

Issue 2599373002: Remove base::ScopedPtrHashMap from components/rappor/. (Closed)
Patch Set: Created 4 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 | « no previous file | components/rappor/sampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/sampler.h
diff --git a/components/rappor/sampler.h b/components/rappor/sampler.h
index 58e0ed12279289fe6ce2c1606a7726cc5931a402..acd8a933dadfdf7fcb11b7b3706e3ae00d2ddea5 100644
--- a/components/rappor/sampler.h
+++ b/components/rappor/sampler.h
@@ -8,8 +8,8 @@
#include <map>
#include <memory>
#include <string>
+#include <unordered_map>
-#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "components/rappor/public/rappor_parameters.h"
#include "components/rappor/public/sample.h"
@@ -42,7 +42,7 @@ class Sampler {
std::map<std::string, int> sample_counts_;
// Stores a Sample for each metric, by metric name.
- base::ScopedPtrHashMap<std::string, std::unique_ptr<Sample>> samples_;
+ std::unordered_map<std::string, std::unique_ptr<Sample>> samples_;
DISALLOW_COPY_AND_ASSIGN(Sampler);
};
« no previous file with comments | « no previous file | components/rappor/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698