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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.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: 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: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
index 7c304434a1ea1c9b78746a1904e5c38120a43136..f9d7020b40d2f1bbbb8c7d8c2e3967141145b9cd 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
@@ -265,8 +265,12 @@ void NetworkConfigurationPolicyHandler::PrepareForDisplaying(
if (!sanitized_config)
sanitized_config = base::Value::CreateNullValue().release();
- policies->Set(policy_name(), entry->level, entry->scope,
- sanitized_config, NULL);
+ policies->SetWithSource(policy_name(),
+ entry->level,
+ entry->scope,
+ sanitized_config,
+ NULL,
bartfab (slow) 2015/09/14 14:42:25 Nit: s/NULL/nullptr/
fhorschig 2015/09/16 13:52:03 Done.
+ entry->source);
}
NetworkConfigurationPolicyHandler::NetworkConfigurationPolicyHandler(

Powered by Google App Engine
This is Rietveld 408576698