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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_browsertest.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: chrome/browser/chromeos/policy/device_local_account_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
index ff2bdb0de7c1c6fc2982ea59fdaaab46e77de5c0..d3b470deb0d80568e21ff5d02bcd66454fdd1a48 100644
--- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
@@ -1420,7 +1420,7 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, ExternalData) {
PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()));
policy_entry = policies.Get(key::kUserAvatarImage);
ASSERT_TRUE(policy_entry);
- EXPECT_TRUE(base::Value::Equals(metadata.get(), policy_entry->value));
+ EXPECT_TRUE(base::Value::Equals(metadata.get(), policy_entry->value.get()));
ASSERT_TRUE(policy_entry->external_data_fetcher);
// Retrieve the external data via the ProfilePolicyConnector. The retrieval

Powered by Google App Engine
This is Rietveld 408576698