commit | f4033a8a1962c87e82ceee40d54e64b22554b2a4 | [log] [tgz] |
---|---|---|
author | Song Fangzhen <[email protected]> | Tue Jun 22 09:12:42 2021 |
committer | Chromium LUCI CQ <[email protected]> | Tue Jun 22 09:12:42 2021 |
tree | ad9902db8b1fe7c98c26dcf02b0def8b9be63a50 | |
parent | da381e66e9397b425b343f518204eee47206ad0a [diff] [blame] |
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;