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

Unified Diff: chrome/browser/ui/webui/policy_ui_browsertest.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad rebase Created 6 years, 5 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 e80dc082b90ebe011289d6b7c4fc3dbed907fefe..efb16df769b84fb7674214ef83c2510f07e93c67 100644
--- a/chrome/browser/ui/webui/policy_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/policy_ui_browsertest.cc
@@ -198,9 +198,9 @@ IN_PROC_BROWSER_TEST_F(PolicyUITest, SendPolicyValues) {
// Set the values of four existing policies.
base::ListValue* restore_on_startup_urls = new base::ListValue;
- restore_on_startup_urls->Append(base::Value::CreateStringValue("aaa"));
- restore_on_startup_urls->Append(base::Value::CreateStringValue("bbb"));
- restore_on_startup_urls->Append(base::Value::CreateStringValue("ccc"));
+ 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"));
values.Set(policy::key::kRestoreOnStartupURLs,
policy::POLICY_LEVEL_MANDATORY,
policy::POLICY_SCOPE_USER,
@@ -210,7 +210,7 @@ IN_PROC_BROWSER_TEST_F(PolicyUITest, SendPolicyValues) {
values.Set(policy::key::kHomepageLocation,
policy::POLICY_LEVEL_MANDATORY,
policy::POLICY_SCOPE_MACHINE,
- base::Value::CreateStringValue("http://google.com"),
+ new base::StringValue("http://google.com"),
NULL);
expected_values[policy::key::kHomepageLocation] = "http://google.com";
values.Set(policy::key::kRestoreOnStartup,

Powered by Google App Engine
This is Rietveld 408576698