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

Unified Diff: storage/browser/fileapi/isolated_context.h

Issue 2347253002: Remove stl_util's STLDeleteContainerPairSecondPointers from storage/. (Closed)
Patch Set: Created 4 years, 3 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: storage/browser/fileapi/isolated_context.h
diff --git a/storage/browser/fileapi/isolated_context.h b/storage/browser/fileapi/isolated_context.h
index b89045bd35bffb0810286f95c297bb082dd7ff37..1f1c1d91f00a2565ec16b5642008e3af8450434f 100644
--- a/storage/browser/fileapi/isolated_context.h
+++ b/storage/browser/fileapi/isolated_context.h
@@ -166,11 +166,6 @@ class STORAGE_EXPORT IsolatedContext : public MountPoints {
// Represents each file system instance (defined in the .cc).
class Instance;
- typedef std::map<std::string, Instance*> IDToInstance;
-
- // Reverse map from registered path to IDs.
- typedef std::map<base::FilePath, std::set<std::string> > PathToID;
-
// Obtain an instance of this class via GetInstance().
IsolatedContext();
~IsolatedContext() override;
@@ -188,8 +183,10 @@ class STORAGE_EXPORT IsolatedContext : public MountPoints {
// This lock needs to be obtained when accessing the instance_map_.
mutable base::Lock lock_;
- IDToInstance instance_map_;
- PathToID path_to_id_map_;
+ std::map<std::string, std::unique_ptr<Instance>> instance_map_;
+
+ // Reverse map from registered path to IDs.
+ std::map<base::FilePath, std::set<std::string>> path_to_id_map_;
DISALLOW_COPY_AND_ASSIGN(IsolatedContext);
};

Powered by Google App Engine
This is Rietveld 408576698