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

Unified Diff: components/prefs/pref_notifier_impl.h

Issue 2352703003: Remove stl_util's STLDeleteContainerPairSecondPointers from prefs. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | components/prefs/pref_notifier_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_notifier_impl.h
diff --git a/components/prefs/pref_notifier_impl.h b/components/prefs/pref_notifier_impl.h
index e0da264ac3a6cb4af3fa0d0c2853ea5a5c85cd11..c5448d3b53e51fb78e33e6a4ed93a3c57285d7b4 100644
--- a/components/prefs/pref_notifier_impl.h
+++ b/components/prefs/pref_notifier_impl.h
@@ -6,6 +6,7 @@
#define COMPONENTS_PREFS_PREF_NOTIFIER_IMPL_H_
#include <list>
+#include <memory>
#include <string>
#include "base/callback.h"
@@ -49,7 +50,8 @@ class COMPONENTS_PREFS_EXPORT PrefNotifierImpl
// order they are added. These should only be accessed externally for unit
// testing.
typedef base::ObserverList<PrefObserver> PrefObserverList;
- typedef base::hash_map<std::string, PrefObserverList*> PrefObserverMap;
+ typedef base::hash_map<std::string, std::unique_ptr<PrefObserverList>>
+ PrefObserverMap;
typedef std::list<base::Callback<void(bool)>> PrefInitObserverList;
« no previous file with comments | « no previous file | components/prefs/pref_notifier_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698