| Index: chrome/browser/ui/webui/options/handler_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/handler_options_handler.cc b/chrome/browser/ui/webui/options/handler_options_handler.cc
|
| index e0318752581083ed2e5ec759a44d69a27ef934da..3900ba6b1a69d1e305baefe609f6788d8e01ea8c 100644
|
| --- a/chrome/browser/ui/webui/options/handler_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/handler_options_handler.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chrome/browser/ui/webui/options/handler_options_handler.h"
|
|
|
| +#include <memory>
|
| +#include <utility>
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| @@ -89,11 +91,11 @@ static void GetHandlersAsListValue(
|
| base::ListValue* handler_list) {
|
| ProtocolHandlerRegistry::ProtocolHandlerList::const_iterator handler;
|
| for (handler = handlers.begin(); handler != handlers.end(); ++handler) {
|
| - base::ListValue* handlerValue = new base::ListValue();
|
| + std::unique_ptr<base::ListValue> handlerValue(new base::ListValue());
|
| handlerValue->AppendString(handler->protocol());
|
| handlerValue->AppendString(handler->url().spec());
|
| handlerValue->AppendString(handler->url().host());
|
| - handler_list->Append(handlerValue);
|
| + handler_list->Append(std::move(handlerValue));
|
| }
|
| }
|
|
|
|
|