Index: components/policy/core/browser/proxy_policy_handler_unittest.cc |
diff --git a/components/policy/core/browser/proxy_policy_handler_unittest.cc b/components/policy/core/browser/proxy_policy_handler_unittest.cc |
index 6a70b7fb4c16aa2d5b91c02d062e02413c1c9b1c..76ea7084ee0f1b0c58137cd96384556225726a2f 100644 |
--- a/components/policy/core/browser/proxy_policy_handler_unittest.cc |
+++ b/components/policy/core/browser/proxy_policy_handler_unittest.cc |
@@ -48,7 +48,7 @@ class ProxyPolicyHandlerTest |
ASSERT_TRUE(store_->GetValue(proxy_config::prefs::kProxy, &value)); |
ASSERT_EQ(base::Value::Type::DICTIONARY, value->GetType()); |
ProxyConfigDictionary dict( |
- static_cast<const base::DictionaryValue*>(value)); |
+ static_cast<const base::DictionaryValue*>(value)->CreateDeepCopy()); |
std::string s; |
if (expected_proxy_server.empty()) { |
EXPECT_FALSE(dict.GetProxyServer(&s)); |