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

Unified Diff: components/doodle/doodle_service.cc

Issue 2784513002: Move PrefRegistrySimple to use unique_ptr<Value> (Closed)
Patch Set: Android Created 3 years, 9 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
Index: components/doodle/doodle_service.cc
diff --git a/components/doodle/doodle_service.cc b/components/doodle/doodle_service.cc
index 1ee35ac295b9cff26809fe1fc2344d597eec2487..cd4b053edf1c7083b14f13e6c7f8db6e290bd971 100644
--- a/components/doodle/doodle_service.cc
+++ b/components/doodle/doodle_service.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/values.h"
#include "components/doodle/pref_names.h"
@@ -29,9 +30,9 @@ const int64_t kDefaultMinRefreshIntervalSecs = 15 * 60; // 15 minutes
// static
void DoodleService::RegisterProfilePrefs(PrefRegistrySimple* pref_registry) {
- pref_registry->RegisterDictionaryPref(prefs::kCachedConfig,
- new base::DictionaryValue(),
- PrefRegistry::LOSSY_PREF);
+ pref_registry->RegisterDictionaryPref(
+ prefs::kCachedConfig, base::MakeUnique<base::DictionaryValue>(),
+ PrefRegistry::LOSSY_PREF);
pref_registry->RegisterInt64Pref(prefs::kCachedConfigExpiry, 0,
PrefRegistry::LOSSY_PREF);
}
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698