Commit 4363df4f authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

Remove uses of deprecated RegisterDictionaryPref

The override of RegisterDictionaryPref taking a std::unique_ptr<base::Value>
is deprecated in favor of the method taking the base::Value by value.

Convert client code to either not pass default value if the value is just
an empty dictionary (as there is an override doing this). If the dictionary
is not empty, convert the code to create and pass it by value.

This CL was uploaded by git cl split.

Bug: 646113
Change-Id: Ib121cd952c29d40d46ab65b02f1e305132131eab
Reviewed-on: https://chromium-review.googlesource.com/c/1454545Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629170}
parent 39cc6888
...@@ -105,8 +105,7 @@ PluginsResourceService::~PluginsResourceService() { ...@@ -105,8 +105,7 @@ PluginsResourceService::~PluginsResourceService() {
// static // static
void PluginsResourceService::RegisterPrefs(PrefRegistrySimple* registry) { void PluginsResourceService::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterDictionaryPref(prefs::kPluginsMetadata, registry->RegisterDictionaryPref(prefs::kPluginsMetadata);
std::make_unique<base::DictionaryValue>());
registry->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0"); registry->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment