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

Unified Diff: chrome/browser/ui/webui/options/options_browsertest.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/options_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/options_browsertest.cc b/chrome/browser/ui/webui/options/options_browsertest.cc
index d964c3560e94de4b0accf90ecb475aa3227a8b71..3be96405e68790431977038e06a523bc3643eb39 100644
--- a/chrome/browser/ui/webui/options/options_browsertest.cc
+++ b/chrome/browser/ui/webui/options/options_browsertest.cc
@@ -44,7 +44,7 @@ void OptionsBrowserTest::ReportHistory(const base::ListValue* list_value) {
const int current = controller.GetCurrentEntryIndex();
for (int i = 0; i <= current; ++i) {
GURL url = controller.GetEntryAtIndex(i)->GetVirtualURL();
- history.Append(new base::StringValue(url.spec()));
+ history.AppendString(url.spec());
}
web_ui()->CallJavascriptFunction(
"OptionsWebUIExtendedTest.verifyHistoryCallback", history);

Powered by Google App Engine
This is Rietveld 408576698