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

Unified Diff: chrome/browser/ui/webui/options/preferences_browsertest.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: Fixed another test. 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/ui/webui/options/preferences_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/preferences_browsertest.cc b/chrome/browser/ui/webui/options/preferences_browsertest.cc
index 2482e34424c4fef931eb41c0aa2e375756fdd804..2f2cee959ee51b77ee5ac91ffd7f71a63e78c9bb 100644
--- a/chrome/browser/ui/webui/options/preferences_browsertest.cc
+++ b/chrome/browser/ui/webui/options/preferences_browsertest.cc
@@ -201,7 +201,7 @@ void PreferencesBrowserTest::SetUserPolicies(
policy::PolicyMap map;
for (size_t i = 0; i < names.size(); ++i) {
map.Set(names[i], level, policy::POLICY_SCOPE_USER,
- values[i]->DeepCopy(), NULL);
+ policy::POLICY_SOURCE_CLOUD, values[i]->DeepCopy(), nullptr);
}
policy_provider_.UpdateChromePolicy(map);
}
@@ -878,6 +878,7 @@ class ProxyPreferencesBrowserTest : public PreferencesBrowserTest {
map.Set(policy_name,
policy::POLICY_LEVEL_MANDATORY,
scope,
+ policy::POLICY_SOURCE_CLOUD,
new base::StringValue(onc_policy),
NULL);
policy_provider_.UpdateChromePolicy(map);
« no previous file with comments | « chrome/browser/ui/webui/options/certificate_manager_browsertest.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698