Index: chrome/browser/custom_handlers/protocol_handler_registry.cc |
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.cc b/chrome/browser/custom_handlers/protocol_handler_registry.cc |
index ab59762240b442f8dbd0b8e096adce05faa914bf..596682630c3681d2be89ec853dc14be19117e1ab 100644 |
--- a/chrome/browser/custom_handlers/protocol_handler_registry.cc |
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc |
@@ -6,6 +6,7 @@ |
#include <stddef.h> |
+#include <memory> |
#include <utility> |
#include "base/bind.h" |
@@ -760,11 +761,11 @@ base::Value* ProtocolHandlerRegistry::EncodeRegisteredHandlers() { |
++i) { |
for (ProtocolHandlerList::iterator j = i->second.begin(); |
j != i->second.end(); ++j) { |
- base::DictionaryValue* encoded = j->Encode(); |
+ std::unique_ptr<base::DictionaryValue> encoded = j->Encode(); |
if (IsDefault(*j)) { |
encoded->Set("default", new base::FundamentalValue(true)); |
} |
- protocol_handlers->Append(encoded); |
+ protocol_handlers->Append(std::move(encoded)); |
} |
} |
return protocol_handlers; |