Index: components/policy/core/common/proxy_policy_provider.cc |
diff --git a/components/policy/core/common/proxy_policy_provider.cc b/components/policy/core/common/proxy_policy_provider.cc |
index 7a8919759c20fdbe9d0535a18f4df3e587518483..382f0a3992ea47b9c58feb051809065c14f8ac70 100644 |
--- a/components/policy/core/common/proxy_policy_provider.cc |
+++ b/components/policy/core/common/proxy_policy_provider.cc |
@@ -21,6 +21,7 @@ void ProxyPolicyProvider::SetDelegate(ConfigurationPolicyProvider* delegate) { |
delegate_->RemoveObserver(this); |
delegate_ = delegate; |
if (delegate_) { |
+ source_ = delegate_->source(); |
delegate_->AddObserver(this); |
OnUpdatePolicy(delegate_); |
} else { |
@@ -35,6 +36,7 @@ void ProxyPolicyProvider::Shutdown() { |
if (delegate_) { |
delegate_->RemoveObserver(this); |
delegate_ = NULL; |
+ source_ = POLICY_SOURCE_UNKNOWN; |
} |
ConfigurationPolicyProvider::Shutdown(); |
} |