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

Unified Diff: chrome/browser/ui/webui/options/certificate_manager_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/certificate_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/certificate_manager_handler.cc b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
index f7316b76f6c083d8d2cb15d9dc985af0055145b6..7aedca7792cdca948063a4511067e2fcf4b223b5 100644
--- a/chrome/browser/ui/webui/options/certificate_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
@@ -1181,7 +1181,7 @@ void CertificateManagerHandler::PopulateTree(
std::sort(nodes->begin(), nodes->end(), comparator);
base::ListValue args;
- args.Append(new base::StringValue(tree_name));
+ args.AppendString(tree_name);
args.Append(nodes);
web_ui()->CallJavascriptFunction("CertificateManager.onPopulateTree", args);
}

Powered by Google App Engine
This is Rietveld 408576698