Index: chrome/browser/ui/app_list/app_list_syncable_service.cc |
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.cc b/chrome/browser/ui/app_list/app_list_syncable_service.cc |
index f25150242595992a2d816758fc21ee9b056b48a9..ed808caa4dbaa909cdd0ee9f90744e4ba69b8969 100644 |
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc |
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc |
@@ -185,8 +185,10 @@ void UpdateSyncItemInLocalStorage( |
base::DictionaryValue* dict_item = nullptr; |
if (!pref_update->GetDictionaryWithoutPathExpansion(sync_item->item_id, |
&dict_item)) { |
- dict_item = new base::DictionaryValue(); |
- pref_update->SetWithoutPathExpansion(sync_item->item_id, dict_item); |
+ pref_update->SetWithoutPathExpansion( |
+ sync_item->item_id, base::MakeUnique<base::DictionaryValue>()); |
+ pref_update->GetDictionaryWithoutPathExpansion(sync_item->item_id, |
+ &dict_item); |
} |
dict_item->SetString(kNameKey, sync_item->item_name); |