Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc |
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc |
index 0c2e812e905712e7e34a4ad15360222534e0e39b..0eb0003ee009540dc588f399d4da57e61fdbd74a 100644 |
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc |
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc |
@@ -71,8 +71,9 @@ class ScopedArcPrefUpdate : public DictionaryPrefUpdate { |
base::DictionaryValue* dict = DictionaryPrefUpdate::Get(); |
base::DictionaryValue* dict_item = nullptr; |
if (!dict->GetDictionaryWithoutPathExpansion(id_, &dict_item)) { |
- dict_item = new base::DictionaryValue(); |
- dict->SetWithoutPathExpansion(id_, dict_item); |
+ dict->SetWithoutPathExpansion(id_, |
+ base::MakeUnique<base::DictionaryValue>()); |
+ dict->GetDictionaryWithoutPathExpansion(id_, &dict_item); |
} |
return dict_item; |
} |