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

Unified Diff: storage/browser/quota/storage_monitor.h

Issue 2389583002: Remove stl_util's deletion functions from storage/. (Closed)
Patch Set: nits Created 4 years, 2 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
« no previous file with comments | « storage/browser/fileapi/file_system_usage_cache.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/storage_monitor.h
diff --git a/storage/browser/quota/storage_monitor.h b/storage/browser/quota/storage_monitor.h
index d2158040ffda93a6772eaeaa85b6330f129c900c..01cb447b8fe8251de87355eae1cc1e17fe779672 100644
--- a/storage/browser/quota/storage_monitor.h
+++ b/storage/browser/quota/storage_monitor.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -140,10 +141,9 @@ class STORAGE_EXPORT StorageTypeObservers {
void NotifyUsageChange(const StorageObserver::Filter& filter, int64_t delta);
private:
- typedef std::map<std::string, HostStorageObservers*> HostObserversMap;
-
QuotaManager* quota_manager_;
- HostObserversMap host_observers_map_;
+ std::map<std::string, std::unique_ptr<HostStorageObservers>>
+ host_observers_map_;
DISALLOW_COPY_AND_ASSIGN(StorageTypeObservers);
};
@@ -170,10 +170,9 @@ class STORAGE_EXPORT StorageMonitor {
void NotifyUsageChange(const StorageObserver::Filter& filter, int64_t delta);
private:
- typedef std::map<StorageType, StorageTypeObservers*> StorageTypeObserversMap;
-
QuotaManager* quota_manager_;
- StorageTypeObserversMap storage_type_observers_map_;
+ std::map<StorageType, std::unique_ptr<StorageTypeObservers>>
+ storage_type_observers_map_;
DISALLOW_COPY_AND_ASSIGN(StorageMonitor);
};
« no previous file with comments | « storage/browser/fileapi/file_system_usage_cache.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698