| Index: chrome/browser/extensions/api/commands/command_service_browsertest.cc
|
| diff --git a/chrome/browser/extensions/api/commands/command_service_browsertest.cc b/chrome/browser/extensions/api/commands/command_service_browsertest.cc
|
| index 0f69acbf453a681720e877646877a021884aa115..347f0a7b50c58f3fdcb43d10b8dbf875d65f3f7d 100644
|
| --- a/chrome/browser/extensions/api/commands/command_service_browsertest.cc
|
| +++ b/chrome/browser/extensions/api/commands/command_service_browsertest.cc
|
| @@ -110,11 +110,11 @@ IN_PROC_BROWSER_TEST_F(CommandServiceTest,
|
| // another platform.
|
| std::string anotherPlatformKey = GetAnotherCommandPlatform() + ":Alt+G";
|
| const char kNamedCommandName[] = "toggle-feature";
|
| - base::DictionaryValue* keybinding = new base::DictionaryValue();
|
| + auto keybinding = base::MakeUnique<base::DictionaryValue>();
|
| keybinding->SetString("extension", extension->id());
|
| keybinding->SetString("command_name", kNamedCommandName);
|
| keybinding->SetBoolean("global", false);
|
| - bindings->Set(anotherPlatformKey, keybinding);
|
| + bindings->Set(anotherPlatformKey, std::move(keybinding));
|
|
|
| CommandService* command_service = CommandService::Get(browser()->profile());
|
| command_service->RemoveKeybindingPrefs(extension->id(), kNamedCommandName);
|
|
|