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

Unified Diff: components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc

Issue 1940153002: Use std::unique_ptr to express ownership of base::Value in PolicyMap::Entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another-fix 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: components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc
diff --git a/components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc b/components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc
index 625f6ef4efc8406a6b53644e218129631f06f027..8c41cca0af6c0a2ce9a46f5bde2fa04e97d0859d 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc
+++ b/components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc
@@ -101,7 +101,7 @@ class UserCloudPolicyStoreTest : public testing::Test {
const PolicyMap::Entry* entry =
store->policy_map().Get(key::kPasswordManagerEnabled);
ASSERT_TRUE(entry);
- EXPECT_TRUE(base::FundamentalValue(true).Equals(entry->value));
+ EXPECT_TRUE(base::FundamentalValue(true).Equals(entry->value.get()));
ASSERT_TRUE(store->policy_map().Get(key::kURLBlacklist));
}

Powered by Google App Engine
This is Rietveld 408576698