| Index: chrome/common/extensions/sync_type_unittest.cc
|
| diff --git a/chrome/common/extensions/sync_type_unittest.cc b/chrome/common/extensions/sync_type_unittest.cc
|
| index 512ad30e2ca1e3e0a0f485dd9bb3adbabfa7eca2..b2fbaa4c431b8753d6f87da4d9619bb38feff754 100644
|
| --- a/chrome/common/extensions/sync_type_unittest.cc
|
| +++ b/chrome/common/extensions/sync_type_unittest.cc
|
| @@ -2,7 +2,10 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <utility>
|
| +
|
| #include "base/files/file_path.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "build/build_config.h"
|
| #include "chrome/common/extensions/sync_helper.h"
|
| #include "extensions/common/error_utils.h"
|
| @@ -56,16 +59,16 @@ class ExtensionSyncTypeTest : public testing::Test {
|
| if (num_plugins >= 0) {
|
| base::ListValue* plugins = new base::ListValue();
|
| for (int i = 0; i < num_plugins; ++i) {
|
| - base::DictionaryValue* plugin = new base::DictionaryValue();
|
| + auto plugin = base::MakeUnique<base::DictionaryValue>();
|
| plugin->SetString(keys::kPluginsPath, std::string());
|
| - plugins->Set(i, plugin);
|
| + plugins->Set(i, std::move(plugin));
|
| }
|
| source.Set(keys::kPlugins, plugins);
|
| }
|
| }
|
| if (has_plugin_permission) {
|
| base::ListValue* plugins = new base::ListValue();
|
| - plugins->Set(0, new base::Value("plugin"));
|
| + plugins->Set(0, base::MakeUnique<base::Value>("plugin"));
|
| source.Set(keys::kPermissions, plugins);
|
| }
|
|
|
|
|