Index: chrome/browser/spellchecker/spellcheck_factory.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_factory.cc b/chrome/browser/spellchecker/spellcheck_factory.cc |
index 3857256a3d4db0bbbb006dbbba973ef681f6b535..9d94c21c4201e347202dc186109c6a8d32ca46e5 100644 |
--- a/chrome/browser/spellchecker/spellcheck_factory.cc |
+++ b/chrome/browser/spellchecker/spellcheck_factory.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/spellchecker/spellcheck_factory.h" |
+#include "base/memory/ptr_util.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/spellchecker/spellcheck_service.h" |
#include "chrome/grit/locale_settings.h" |
@@ -69,7 +70,7 @@ KeyedService* SpellcheckServiceFactory::BuildServiceInstanceFor( |
void SpellcheckServiceFactory::RegisterProfilePrefs( |
user_prefs::PrefRegistrySyncable* user_prefs) { |
user_prefs->RegisterListPref(spellcheck::prefs::kSpellCheckDictionaries, |
- new base::ListValue); |
+ base::MakeUnique<base::ListValue>()); |
// Continue registering kSpellCheckDictionary for preference migration. |
// TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. |
user_prefs->RegisterStringPref( |