| Index: chrome/browser/ui/webui/nacl_ui.cc
|
| diff --git a/chrome/browser/ui/webui/nacl_ui.cc b/chrome/browser/ui/webui/nacl_ui.cc
|
| index 79fe16e5e1bd91840e0581e5b1138e6fd3e7a7aa..f153fccba36b364233c01f45fabebb0e07350881 100644
|
| --- a/chrome/browser/ui/webui/nacl_ui.cc
|
| +++ b/chrome/browser/ui/webui/nacl_ui.cc
|
| @@ -6,7 +6,9 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include <memory>
|
| #include <string>
|
| +#include <utility>
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| @@ -159,10 +161,10 @@ void NaClDomHandler::RegisterMessages() {
|
| void AddPair(base::ListValue* list,
|
| const base::string16& key,
|
| const base::string16& value) {
|
| - base::DictionaryValue* results = new base::DictionaryValue();
|
| + std::unique_ptr<base::DictionaryValue> results(new base::DictionaryValue());
|
| results->SetString("key", key);
|
| results->SetString("value", value);
|
| - list->Append(results);
|
| + list->Append(std::move(results));
|
| }
|
|
|
| // Generate an empty data-pair which acts as a line break.
|
|
|