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

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: . 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
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..23c7abe36d480657caf91dccb605f437efd57794 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"
@@ -577,6 +578,10 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
#if defined(OS_CHROMEOS)
{ key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN },
#endif
+
+ { key::kNTPContentSuggestionsEnabled,
Thiemo Nagel 2016/07/29 16:10:46 Nit: Please move above to join the rest of the non
Marc Treib 2016/08/01 08:20:13 Done.
+ ntp_snippets::prefs::kEnableSnippets,
+ base::Value::TYPE_BOOLEAN },
};
class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | components/policy/resources/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698