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

Unified Diff: components/policy/core/common/policy_bundle_unittest.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks 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: components/policy/core/common/policy_bundle_unittest.cc
diff --git a/components/policy/core/common/policy_bundle_unittest.cc b/components/policy/core/common/policy_bundle_unittest.cc
index bafa25e2ca57beb33a7347179f7972b6f3d2059f..63fc1e0aef2daa8f8d4f3049b838fe4752d325dd 100644
--- a/components/policy/core/common/policy_bundle_unittest.cc
+++ b/components/policy/core/common/policy_bundle_unittest.cc
@@ -29,8 +29,11 @@ const char kExtension3[] = "extension-3";
void AddTestPolicies(PolicyMap* policy) {
policy->Set("mandatory-user", POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, base::Value::CreateIntegerValue(123), NULL);
- policy->Set("mandatory-machine", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE,
- base::Value::CreateStringValue("omg"), NULL);
+ policy->Set("mandatory-machine",
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE,
+ new base::StringValue("omg"),
+ NULL);
policy->Set("recommended-user", POLICY_LEVEL_RECOMMENDED,
POLICY_SCOPE_USER, base::Value::CreateBooleanValue(true), NULL);
base::DictionaryValue* dict = new base::DictionaryValue();

Powered by Google App Engine
This is Rietveld 408576698