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

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

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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: 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 2eca8cae4e988eadc3daca7422a9fbd8ce1faa59..0c53bd097798503b8294eecbb29b3b100ba26b41 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
@@ -95,8 +95,9 @@ class MetadataDatabaseIndex : public MetadataDatabaseIndexInterface {
std::vector<std::string> GetAllMetadataIDs() const override;
private:
- typedef base::ScopedPtrHashMap<std::string, FileMetadata> MetadataByID;
- typedef base::ScopedPtrHashMap<int64, FileTracker> TrackerByID;
+ typedef base::ScopedPtrHashMap<std::string, scoped_ptr<FileMetadata>>
+ MetadataByID;
+ typedef base::ScopedPtrHashMap<int64, scoped_ptr<FileTracker>> TrackerByID;
typedef base::hash_map<std::string, TrackerIDSet> TrackerIDsByFileID;
typedef base::hash_map<std::string, TrackerIDSet> TrackerIDsByTitle;
typedef std::map<int64, TrackerIDsByTitle> TrackerIDsByParentAndTitle;

Powered by Google App Engine
This is Rietveld 408576698