| Index: chrome/browser/extensions/api/commands/commands.cc
|
| diff --git a/chrome/browser/extensions/api/commands/commands.cc b/chrome/browser/extensions/api/commands/commands.cc
|
| index eec31c29424e2eb62585ccbd9deea7beee3006ab..608d5db2dcb1939c7bc61d7c4ea3aa9419d8a12c 100644
|
| --- a/chrome/browser/extensions/api/commands/commands.cc
|
| +++ b/chrome/browser/extensions/api/commands/commands.cc
|
| @@ -12,9 +12,10 @@
|
|
|
| namespace {
|
|
|
| -base::DictionaryValue* CreateCommandValue(
|
| - const extensions::Command& command, bool active) {
|
| - base::DictionaryValue* result = new base::DictionaryValue();
|
| +std::unique_ptr<base::DictionaryValue> CreateCommandValue(
|
| + const extensions::Command& command,
|
| + bool active) {
|
| + std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue());
|
| result->SetString("name", command.command_name());
|
| result->SetString("description", command.description());
|
| result->SetString("shortcut",
|
|
|