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

Unified Diff: chrome/renderer/safe_browsing/features.h

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 6 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: chrome/renderer/safe_browsing/features.h
diff --git a/chrome/renderer/safe_browsing/features.h b/chrome/renderer/safe_browsing/features.h
index 29fa40cab8ed54419d0272668e7dc21ebaa425d7..e6f21dfac3ac4fee19146576186b7e548c8ec7da 100644
--- a/chrome/renderer/safe_browsing/features.h
+++ b/chrome/renderer/safe_browsing/features.h
@@ -27,8 +27,8 @@
#include <stddef.h>
#include <string>
+#include <unordered_map>
-#include "base/containers/hash_tables.h"
#include "base/macros.h"
namespace safe_browsing {
@@ -52,7 +52,7 @@ class FeatureMap {
bool AddRealFeature(const std::string& name, double value);
// Provides read-only access to the current set of features.
- const base::hash_map<std::string, double>& features() const {
+ const std::unordered_map<std::string, double>& features() const {
return features_;
}
@@ -65,7 +65,7 @@ class FeatureMap {
static const size_t kMaxFeatureMapSize;
private:
- base::hash_map<std::string, double> features_;
+ std::unordered_map<std::string, double> features_;
DISALLOW_COPY_AND_ASSIGN(FeatureMap);
};
« no previous file with comments | « chrome/renderer/extensions/automation_internal_custom_bindings.h ('k') | chrome/renderer/safe_browsing/phishing_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698