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

Unified Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 2162413002: Introduce an NTPContentSuggestionsEnabled policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_flip
Patch Set: nit Created 4 years, 5 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 | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_list_factory.cc b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
index 6f860b84561436579a8494601e3b16fe8eff95fc..e75090be247b91bab75bd72514014b787af2fc2e 100644
--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
@@ -29,6 +29,7 @@
#include "components/certificate_transparency/pref_names.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/metrics/metrics_pref_names.h"
+#include "components/ntp_snippets/pref_names.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
#include "components/policy/core/browser/autofill_policy_handler.h"
#include "components/policy/core/browser/configuration_policy_handler.h"
@@ -390,6 +391,9 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
{ key::kDHEEnabled,
ssl_config::prefs::kDHEEnabled,
base::Value::TYPE_BOOLEAN },
+ { key::kNTPContentSuggestionsEnabled,
+ ntp_snippets::prefs::kEnableSnippets,
+ base::Value::TYPE_BOOLEAN },
#if defined(ENABLE_MEDIA_ROUTER)
{ key::kEnableMediaRouter,
prefs::kEnableMediaRouter,
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698