Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry.cc

Issue 2014103002: Remove deprecated ListValue::Append(Value*) overload on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ADL fail Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698