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

Unified Diff: chrome/browser/ui/webui/policy_ui_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/policy_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/policy_ui_browsertest.cc b/chrome/browser/ui/webui/policy_ui_browsertest.cc
index 1e34b4485a41b2467316e10ae26e00a3843b1f14..9b3ea6d627d8ff17c658d02a1f77592a724b50d2 100644
--- a/chrome/browser/ui/webui/policy_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/policy_ui_browsertest.cc
@@ -215,9 +215,9 @@ IN_PROC_BROWSER_TEST_F(PolicyUITest, SendPolicyValues) {
// Set the values of four existing policies.
std::unique_ptr<base::ListValue> restore_on_startup_urls(new base::ListValue);
- restore_on_startup_urls->Append(new base::StringValue("aaa"));
- restore_on_startup_urls->Append(new base::StringValue("bbb"));
- restore_on_startup_urls->Append(new base::StringValue("ccc"));
+ restore_on_startup_urls->AppendString("aaa");
+ restore_on_startup_urls->AppendString("bbb");
+ restore_on_startup_urls->AppendString("ccc");
values.Set(policy::key::kRestoreOnStartupURLs, policy::POLICY_LEVEL_MANDATORY,
policy::POLICY_SCOPE_USER, policy::POLICY_SOURCE_CLOUD,
std::move(restore_on_startup_urls), nullptr);
« no previous file with comments | « chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc ('k') | chrome/browser/ui/webui/settings/font_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698