Index: components/policy/core/common/cloud/cloud_policy_manager_unittest.cc |
diff --git a/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc b/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc |
index 74a84d5792b043f6d7b406a989b15e4be4093a09..9dab86b3eaf01b1b805e0e44159af86018afe893 100644 |
--- a/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc |
+++ b/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc |
@@ -89,8 +89,11 @@ void TestHarness::InstallEmptyPolicy() {} |
void TestHarness::InstallStringPolicy(const std::string& policy_name, |
const std::string& policy_value) { |
- store_.policy_map_.Set(policy_name, policy_level(), policy_scope(), |
- base::Value::CreateStringValue(policy_value), NULL); |
+ store_.policy_map_.Set(policy_name, |
+ policy_level(), |
+ policy_scope(), |
+ new base::StringValue(policy_value), |
+ NULL); |
} |
void TestHarness::InstallIntegerPolicy(const std::string& policy_name, |
@@ -176,8 +179,11 @@ class CloudPolicyManagerTest : public testing::Test { |
virtual void SetUp() OVERRIDE { |
// Set up a policy map for testing. |
- policy_map_.Set("key", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue("value"), NULL); |
+ policy_map_.Set("key", |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue("value"), |
+ NULL); |
expected_bundle_.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) |
.CopyFrom(policy_map_); |