CodeHealth: Remove use of DictionaryValue::Set in /components/prefs

This change removes the use of DictionaryValue::Set and replaces with
Value::SetKey() or Value::SetPath().

This CL was uploaded by git cl split.

[email protected]

Bug: 1187023
Change-Id: Ie390dc8085fb07414f4226088b3a33bb840396bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2972150
Auto-Submit: Fangzhen Song <[email protected]>
Commit-Queue: Fangzhen Song <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Cr-Commit-Position: refs/heads/master@{#894591}
diff --git a/components/prefs/overlay_user_pref_store.cc b/components/prefs/overlay_user_pref_store.cc
index 02b3167..d3f285b 100644
--- a/components/prefs/overlay_user_pref_store.cc
+++ b/components/prefs/overlay_user_pref_store.cc
@@ -96,7 +96,7 @@
     std::unique_ptr<base::Value> out_value;
     persistent_values->Remove(key, &out_value);
     if (out_value) {
-      values->Set(key, std::move(out_value));
+      values->SetPath(key, std::move(*out_value));
     }
   }
   return values;