Remove use of stl_util's STLDeleteContainerPairSecondPointers from content/.
BUG=555865
Review-Url: https://codereview.chromium.org/2249473002
Cr-Commit-Position: refs/heads/master@{#412259}
diff --git a/content/browser/storage_partition_impl_map.h b/content/browser/storage_partition_impl_map.h
index 00b01f1e..55f1c303 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 @@
};
typedef std::map<StoragePartitionConfig,
- StoragePartitionImpl*,
+ std::unique_ptr<StoragePartitionImpl>,
StoragePartitionConfigLess>
PartitionMap;
@@ -128,6 +130,8 @@
// 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