| Index: chrome/browser/ui/webui/instant_ui.cc
|
| diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc
|
| index 3a71bea3aa0a3abe2986bd1d5ab8d98328aa90e5..b2d8e296eb98d91cb498ecd37c30e5fb845a4dec 100644
|
| --- a/chrome/browser/ui/webui/instant_ui.cc
|
| +++ b/chrome/browser/ui/webui/instant_ui.cc
|
| @@ -6,6 +6,9 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <memory>
|
| +#include <utility>
|
| +
|
| #include "base/bind.h"
|
| #include "base/macros.h"
|
| #include "base/strings/stringprintf.h"
|
| @@ -136,10 +139,10 @@ void InstantUIMessageHandler::GetDebugInfo(const base::ListValue* args) {
|
| base::ListValue* entries = new base::ListValue();
|
| for (std::list<DebugEvent>::const_iterator it = events.begin();
|
| it != events.end(); ++it) {
|
| - base::DictionaryValue* entry = new base::DictionaryValue();
|
| + std::unique_ptr<base::DictionaryValue> entry(new base::DictionaryValue());
|
| entry->SetString("time", FormatTime(it->first));
|
| entry->SetString("text", it->second);
|
| - entries->Append(entry);
|
| + entries->Append(std::move(entry));
|
| }
|
| data.Set("entries", entries);
|
|
|
|
|