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

Unified Diff: content/browser/storage_partition_impl_map.h

Issue 2249473002: Remove use of stl_util's STLDeleteContainerPairSecondPointers from content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 | « content/browser/storage_partition_impl.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_map.h
diff --git a/content/browser/storage_partition_impl_map.h b/content/browser/storage_partition_impl_map.h
index 00b01f1ec1ffba8dfabb148e6e8bfa00d25d28fd..55f1c3030b5552484cd24c920550396eedf23d84 100644
--- a/content/browser/storage_partition_impl_map.h
+++ b/content/browser/storage_partition_impl_map.h
@@ -6,11 +6,13 @@
#define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_MAP_H_
#include <map>
+#include <memory>
#include <string>
#include "base/callback_forward.h"
#include "base/containers/hash_tables.h"
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "base/supports_user_data.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/browser_context.h"
@@ -101,7 +103,7 @@ class CONTENT_EXPORT StoragePartitionImplMap
};
typedef std::map<StoragePartitionConfig,
- StoragePartitionImpl*,
+ std::unique_ptr<StoragePartitionImpl>,
StoragePartitionConfigLess>
PartitionMap;
@@ -128,6 +130,8 @@ class CONTENT_EXPORT StoragePartitionImplMap
// Set to true when the ResourceContext for the associated |browser_context_|
// is initialized. Can never return to false.
bool resource_context_initialized_;
+
+ DISALLOW_COPY_AND_ASSIGN(StoragePartitionImplMap);
};
} // namespace content
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698