| Index: components/sync_preferences/pref_model_associator_unittest.cc
|
| diff --git a/components/sync_preferences/pref_model_associator_unittest.cc b/components/sync_preferences/pref_model_associator_unittest.cc
|
| index d9c4f17d4e689903417da9e6a5da18bc33c461ea..4b2d9bc80770ea17d3efe7b1ee03a4ee9f5a6187 100644
|
| --- a/components/sync_preferences/pref_model_associator_unittest.cc
|
| +++ b/components/sync_preferences/pref_model_associator_unittest.cc
|
| @@ -65,15 +65,16 @@ class AbstractPreferenceMergeTest : public testing::Test {
|
| void SetContentPattern(base::DictionaryValue* patterns_dict,
|
| const std::string& expression,
|
| int setting) {
|
| - base::DictionaryValue* expression_dict;
|
| + base::DictionaryValue* expression_dict = nullptr;
|
| bool found = patterns_dict->GetDictionaryWithoutPathExpansion(
|
| expression, &expression_dict);
|
| if (!found) {
|
| - expression_dict = new base::DictionaryValue;
|
| - patterns_dict->SetWithoutPathExpansion(expression, expression_dict);
|
| + patterns_dict->SetWithoutPathExpansion(
|
| + expression, base::MakeUnique<base::DictionaryValue>());
|
| + patterns_dict->GetDictionaryWithoutPathExpansion(expression,
|
| + &expression_dict);
|
| }
|
| - expression_dict->SetWithoutPathExpansion("setting",
|
| - new base::Value(setting));
|
| + expression_dict->SetIntegerWithoutPathExpansion("setting", setting);
|
| }
|
|
|
| void SetPrefToEmpty(const std::string& pref_name) {
|
|
|