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

Unified Diff: components/policy/core/common/schema_registry_tracking_policy_provider.cc

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browsertest now checks one translated string. Refactoring according to review. Created 5 years, 3 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/schema_registry_tracking_policy_provider.cc
diff --git a/components/policy/core/common/schema_registry_tracking_policy_provider.cc b/components/policy/core/common/schema_registry_tracking_policy_provider.cc
index 4f8e7194bb852d0b30793927355458ba51ee9e12..50dbe17ac8a1fab056eaa82f2e2b2a14485732b4 100644
--- a/components/policy/core/common/schema_registry_tracking_policy_provider.cc
+++ b/components/policy/core/common/schema_registry_tracking_policy_provider.cc
@@ -11,7 +11,9 @@ namespace policy {
SchemaRegistryTrackingPolicyProvider::SchemaRegistryTrackingPolicyProvider(
ConfigurationPolicyProvider* delegate)
- : delegate_(delegate), state_(WAITING_FOR_REGISTRY_READY) {
+ : delegate_(delegate),
+ state_(WAITING_FOR_REGISTRY_READY) {
+ source_ = delegate->source();
delegate_->AddObserver(this);
// Serve the initial |delegate_| policies.
OnUpdatePolicy(delegate_);

Powered by Google App Engine
This is Rietveld 408576698