Index: chrome/browser/background/background_contents_service.cc |
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc |
index ae384a895717fb16c3ce55ef883fb18400d4c149..a828dfe80c63f95c5b4d45940a435b02fbeed9ca 100644 |
--- a/chrome/browser/background/background_contents_service.cc |
+++ b/chrome/browser/background/background_contents_service.cc |
@@ -763,10 +763,10 @@ void BackgroundContentsService::RegisterBackgroundContents( |
} |
// No entry for this application yet, so add one. |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ auto dict = base::MakeUnique<base::DictionaryValue>(); |
dict->SetString(kUrlKey, background_contents->GetURL().spec()); |
dict->SetString(kFrameNameKey, contents_map_[appid].frame_name); |
- pref->SetWithoutPathExpansion(base::UTF16ToUTF8(appid), dict); |
+ pref->SetWithoutPathExpansion(base::UTF16ToUTF8(appid), std::move(dict)); |
} |
bool BackgroundContentsService::HasRegisteredBackgroundContents( |