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

Unified Diff: chrome/browser/ui/webui/options/handler_options_handler.cc

Issue 2030013003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/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 e202ba1de55949e811bc402003aee2010e38e755..6eb4d754e13a1ef0b29c1094e1f59fae0e64ffec 100644
--- a/chrome/browser/ui/webui/options/handler_options_handler.cc
+++ b/chrome/browser/ui/webui/options/handler_options_handler.cc
@@ -90,9 +90,9 @@ static void GetHandlersAsListValue(
ProtocolHandlerRegistry::ProtocolHandlerList::const_iterator handler;
for (handler = handlers.begin(); handler != handlers.end(); ++handler) {
base::ListValue* handlerValue = new base::ListValue();
- handlerValue->Append(new base::StringValue(handler->protocol()));
- handlerValue->Append(new base::StringValue(handler->url().spec()));
- handlerValue->Append(new base::StringValue(handler->url().host()));
+ handlerValue->AppendString(handler->protocol());
+ handlerValue->AppendString(handler->url().spec());
+ handlerValue->AppendString(handler->url().host());
handler_list->Append(handlerValue);
}
}

Powered by Google App Engine
This is Rietveld 408576698