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

Unified Diff: chrome/browser/policy/cloud/cloud_policy_browsertest.cc

Issue 2282743002: Disable NTP Content Suggestions by default for enterprise users (Closed)
Patch Set: update tests Created 4 years, 4 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
« no previous file with comments | « no previous file | components/policy/core/common/cloud/user_cloud_policy_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/cloud_policy_browsertest.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
index fa47b2b9a30be4c026a1359dffc12f813f6119a2..50d38c6a23306e0dfeddaf2433db96de39b9c2fc 100644
--- a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
@@ -149,6 +149,9 @@ std::string GetTestPolicy(const char* homepage, int key_version) {
}
void GetExpectedDefaultPolicy(PolicyMap* policy_map) {
+ policy_map->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
+ base::WrapUnique(new base::FundamentalValue(false)), nullptr);
#if defined(OS_CHROMEOS)
policy_map->Set(
key::kChromeOsMultiProfileUserBehavior, POLICY_LEVEL_MANDATORY,
@@ -191,6 +194,10 @@ void GetExpectedTestPolicy(PolicyMap* expected, const char* homepage) {
expected->Set(key::kHomepageLocation, POLICY_LEVEL_RECOMMENDED,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
base::WrapUnique(new base::StringValue(homepage)), nullptr);
+
+ expected->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY,
Marc Treib 2016/08/26 13:13:37 From here on, the rest of this function exactly du
Andrew T Wilson (Slow) 2016/08/26 14:08:05 Yes, please make that change if you don't mind! Or
Marc Treib 2016/08/26 14:12:11 Done.
+ POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
+ base::WrapUnique(new base::FundamentalValue(false)), nullptr);
#if defined(OS_CHROMEOS)
expected->Set(key::kChromeOsMultiProfileUserBehavior, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
« no previous file with comments | « no previous file | components/policy/core/common/cloud/user_cloud_policy_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698