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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index.h

Issue 2605433002: Remove base::ScopedPtrHashMap from chrome/browser/sync_file_system/drive_backend/ (Closed)
Patch Set: no crash 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 | chrome/browser/sync_file_system/drive_backend/metadata_database_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 688ae85ff8c3542711aa294a9fdcee4f8a53918a..16eab0731eaa315efa3634ed5880295a3a657606 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
@@ -11,6 +11,7 @@
#include <map>
#include <set>
#include <string>
+#include <unordered_map>
#include <vector>
#include "base/containers/hash_tables.h"
@@ -104,10 +105,9 @@ class MetadataDatabaseIndex : public MetadataDatabaseIndexInterface {
std::vector<std::string> GetAllMetadataIDs() const override;
private:
- typedef base::ScopedPtrHashMap<std::string, std::unique_ptr<FileMetadata>>
+ typedef std::unordered_map<std::string, std::unique_ptr<FileMetadata>>
MetadataByID;
- typedef base::ScopedPtrHashMap<int64_t, std::unique_ptr<FileTracker>>
- TrackerByID;
+ 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::map<int64_t, TrackerIDsByTitle> TrackerIDsByParentAndTitle;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698