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

Unified Diff: chrome/common/pref_names.cc

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Test compile fix Created 3 years, 10 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/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 7b14c9a6ea83e6f322a32cfadd4009a4f8552076..e17c34c55dd7f196c359fb58e24a3d2b1a768a55 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -58,6 +58,13 @@ const char kDefaultApps[] = "default_apps";
// handling code reads local state, while extension APIs use profile pref.
const char kDisableScreenshots[] = "disable_screenshots";
+// Prevents certain types of downloads based on integre value:
+// 0 - Allow all downloads (default)
+// 1 - Disable Safe Browsing dangerous files
+// 2 - Disable Safe Browsing potentially dangerous files
+// 3 - Disable all downloads
+const char kDownloadRestrictions[] = "download_restrictions";
+
// If set to true profiles are created in ephemeral mode and do not store their
// data in the profile folder on disk but only in memory.
const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";

Powered by Google App Engine
This is Rietveld 408576698