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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index.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/browser/sync_file_system/drive_backend/metadata_database_index.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
index 38ff499d0e1e71497ed3988375e22ae2684a07d4..fedf07bac53ad2b74530457445966c7b08fa5593 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
@@ -12,9 +12,9 @@
#include <set>
#include <string>
#include <unordered_map>
+#include <unordered_set>
#include <vector>
-#include "base/containers/hash_tables.h"
#include "base/hash.h"
#include "base/macros.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h"
@@ -31,7 +31,7 @@ class ServiceMetadata;
} // namespace drive_backend
} // namespace sync_file_system
-namespace BASE_HASH_NAMESPACE {
+namespace std {
template<> struct hash<sync_file_system::drive_backend::ParentIDAndTitle> {
std::size_t operator()(
@@ -40,7 +40,7 @@ template<> struct hash<sync_file_system::drive_backend::ParentIDAndTitle> {
}
};
-} // namespace BASE_HASH_NAMESPACE
+} // namespace std
namespace sync_file_system {
namespace drive_backend {
@@ -106,12 +106,12 @@ class MetadataDatabaseIndex : public MetadataDatabaseIndexInterface {
typedef std::unordered_map<std::string, std::unique_ptr<FileMetadata>>
MetadataByID;
typedef std::unordered_map<int64_t, std::unique_ptr<FileTracker>> TrackerByID;
- typedef base::hash_map<std::string, TrackerIDSet> TrackerIDsByFileID;
- typedef base::hash_map<std::string, TrackerIDSet> TrackerIDsByTitle;
+ typedef std::unordered_map<std::string, TrackerIDSet> TrackerIDsByFileID;
+ typedef std::unordered_map<std::string, TrackerIDSet> TrackerIDsByTitle;
typedef std::map<int64_t, TrackerIDsByTitle> TrackerIDsByParentAndTitle;
- typedef base::hash_map<std::string, int64_t> TrackerIDByAppID;
- typedef base::hash_set<std::string> FileIDSet;
- typedef base::hash_set<ParentIDAndTitle> PathSet;
+ typedef std::unordered_map<std::string, int64_t> TrackerIDByAppID;
+ typedef std::unordered_set<std::string> FileIDSet;
+ typedef std::unordered_set<ParentIDAndTitle> PathSet;
typedef std::set<int64_t> DirtyTrackers;
friend class MetadataDatabaseTest;
« no previous file with comments | « chrome/browser/site_details.h ('k') | chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698