| 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;
|
|
|
|
|