Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: ui/app_list/search/history_data_store.cc

Issue 2911033002: Remove raw base::DictionaryValue::Set (Closed)
Patch Set: Proper Windows Fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/json_schema_compiler/test/objects_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/history_data_store.cc
diff --git a/ui/app_list/search/history_data_store.cc b/ui/app_list/search/history_data_store.cc
index a0e1b29973459d95cf8dde2a892ed74ef9bfd5b4..0f4a315215dcf6707b47ac82b07468ee943a8f9b 100644
--- a/ui/app_list/search/history_data_store.cc
+++ b/ui/app_list/search/history_data_store.cc
@@ -128,7 +128,7 @@ HistoryDataStore::~HistoryDataStore() {
void HistoryDataStore::Init(base::DictionaryValue* cached_dict) {
DCHECK(cached_dict);
cached_dict->SetString(kKeyVersion, kCurrentVersion);
- cached_dict->Set(kKeyAssociations, new base::DictionaryValue);
+ cached_dict->Set(kKeyAssociations, base::MakeUnique<base::DictionaryValue>());
}
void HistoryDataStore::Flush(
« no previous file with comments | « tools/json_schema_compiler/test/objects_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698