Index: chrome/browser/extensions/api/proxy/proxy_apitest.cc |
diff --git a/chrome/browser/extensions/api/proxy/proxy_apitest.cc b/chrome/browser/extensions/api/proxy/proxy_apitest.cc |
index 61ebbd4c0b3d7900a7717072971f9eea4acc338c..7df0ebb87e303feb47ff68422e51a0e6c5b84753 100644 |
--- a/chrome/browser/extensions/api/proxy/proxy_apitest.cc |
+++ b/chrome/browser/extensions/api/proxy/proxy_apitest.cc |
@@ -37,7 +37,8 @@ class ProxySettingsApiTest : public ExtensionApiTest { |
EXPECT_TRUE(pref->IsExtensionControlled()); |
ProxyConfigDictionary dict( |
- pref_service->GetDictionary(proxy_config::prefs::kProxy)); |
+ pref_service->GetDictionary(proxy_config::prefs::kProxy) |
+ ->CreateDeepCopy()); |
ProxyPrefs::ProxyMode mode; |
ASSERT_TRUE(dict.GetMode(&mode)); |