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

Unified Diff: chrome/browser/extensions/extension_management.h

Issue 2606553002: Remove base::ScopedPtrHashMap from chrome/browser/extensions. (Closed)
Patch Set: fixes 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 | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_management.h
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h
index 9d9831e827caef39c83efe78682b8faa96975bbe..58c621f90c22a3010581e938b8b1788e80aa28ca 100644
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -7,9 +7,9 @@
#include <memory>
#include <string>
+#include <unordered_map>
#include <vector>
-#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
@@ -130,12 +130,12 @@ class ExtensionManagement : public KeyedService {
std::string* required_version) const;
private:
- typedef base::ScopedPtrHashMap<ExtensionId,
- std::unique_ptr<internal::IndividualSettings>>
- SettingsIdMap;
- typedef base::ScopedPtrHashMap<std::string,
- std::unique_ptr<internal::IndividualSettings>>
- SettingsUpdateUrlMap;
+ using SettingsIdMap =
+ std::unordered_map<ExtensionId,
+ std::unique_ptr<internal::IndividualSettings>>;
+ using SettingsUpdateUrlMap =
+ std::unordered_map<std::string,
+ std::unique_ptr<internal::IndividualSettings>>;
friend class ExtensionManagementServiceTest;
// Load all extension management preferences from |pref_service|, and
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698