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

Unified Diff: storage/browser/blob/blob_storage_registry.h

Issue 2604913002: Remove base::ScopedPtrHashMap from storage/. (Closed)
Patch Set: 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 | storage/browser/blob/blob_storage_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_storage_registry.h
diff --git a/storage/browser/blob/blob_storage_registry.h b/storage/browser/blob/blob_storage_registry.h
index f27e7ea7de95f29c80c72b6d1460a61a48aeecb8..26d391fb48a4d7fd3bc2fc4dec9dfa1d53dc6042 100644
--- a/storage/browser/blob/blob_storage_registry.h
+++ b/storage/browser/blob/blob_storage_registry.h
@@ -10,10 +10,10 @@
#include <map>
#include <memory>
#include <string>
+#include <unordered_map>
#include <vector>
#include "base/callback_forward.h"
-#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "storage/browser/storage_browser_export.h"
#include "storage/common/blob_storage/blob_storage_constants.h"
@@ -70,12 +70,9 @@ class STORAGE_EXPORT BlobStorageRegistry {
private:
friend class ViewBlobInternalsJob;
- using BlobMap =
- base::ScopedPtrHashMap<std::string, std::unique_ptr<BlobEntry>>;
- using URLMap = std::map<GURL, std::string>;
- BlobMap blob_map_;
- URLMap url_to_uuid_;
+ std::unordered_map<std::string, std::unique_ptr<BlobEntry>> blob_map_;
+ std::map<GURL, std::string> url_to_uuid_;
DISALLOW_COPY_AND_ASSIGN(BlobStorageRegistry);
};
« no previous file with comments | « no previous file | storage/browser/blob/blob_storage_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698