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

Unified Diff: chrome/browser/download/download_query_unittest.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/download/download_query_unittest.cc
diff --git a/chrome/browser/download/download_query_unittest.cc b/chrome/browser/download/download_query_unittest.cc
index e8fcad562fe54c89fcc3e2308a7e72ec32ce8ca6..d34a4b9eb96d9636f094fc0b2e10d74806091836 100644
--- a/chrome/browser/download/download_query_unittest.cc
+++ b/chrome/browser/download/download_query_unittest.cc
@@ -135,7 +135,7 @@ template<> void DownloadQueryTest::AddFilter(
std::unique_ptr<base::ListValue> list(new base::ListValue());
for (std::vector<base::string16>::const_iterator it = cpp_value.begin();
it != cpp_value.end(); ++it) {
- list->Append(new base::StringValue(*it));
+ list->AppendString(*it);
}
CHECK(query_.AddFilter(name, *list.get()));
}
@@ -145,7 +145,7 @@ template<> void DownloadQueryTest::AddFilter(
std::unique_ptr<base::ListValue> list(new base::ListValue());
for (std::vector<std::string>::const_iterator it = cpp_value.begin();
it != cpp_value.end(); ++it) {
- list->Append(new base::StringValue(*it));
+ list->AppendString(*it);
}
CHECK(query_.AddFilter(name, *list.get()));
}

Powered by Google App Engine
This is Rietveld 408576698