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

Side by Side Diff: chrome/common/pref_names.cc

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Missed one... :-( Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // "noinstall" to disable them. This property is usually set in the 68 // "noinstall" to disable them. This property is usually set in the
69 // master_preferences and copied into the profile preferences on first run. 69 // master_preferences and copied into the profile preferences on first run.
70 // Defaults apps are installed only when creating a new profile. 70 // Defaults apps are installed only when creating a new profile.
71 const char kDefaultApps[] = "default_apps"; 71 const char kDefaultApps[] = "default_apps";
72 72
73 // Disables screenshot accelerators and extension APIs. 73 // Disables screenshot accelerators and extension APIs.
74 // This setting resides both in profile prefs and local state. Accelerator 74 // This setting resides both in profile prefs and local state. Accelerator
75 // handling code reads local state, while extension APIs use profile pref. 75 // handling code reads local state, while extension APIs use profile pref.
76 const char kDisableScreenshots[] = "disable_screenshots"; 76 const char kDisableScreenshots[] = "disable_screenshots";
77 77
78 // Prevents certain types of downloads based on integre value:
79 // 0 - No special restrictions (default)
80 // 1 - Block dangerous downloads
81 // 2 - Block potentially dangerous downloads
82 // 3 - Block all downloads
83 const char kDownloadRestrictions[] = "download_restrictions";
jochen (gone - plz use gerrit) 2017/06/14 08:16:49 s/integre/integer/ can you also add a comment say
MAD 2017/06/14 17:50:21 Done.
84
78 // If set to true profiles are created in ephemeral mode and do not store their 85 // If set to true profiles are created in ephemeral mode and do not store their
79 // data in the profile folder on disk but only in memory. 86 // data in the profile folder on disk but only in memory.
80 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 87 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
81 88
82 // A boolean specifying whether the New Tab page is the home page or not. 89 // A boolean specifying whether the New Tab page is the home page or not.
83 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 90 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
84 91
85 // This is the URL of the page to load when opening new tabs. 92 // This is the URL of the page to load when opening new tabs.
86 const char kHomePage[] = "homepage"; 93 const char kHomePage[] = "homepage";
87 94
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 // internal format (int64) in local store. (I.e., this is not a per-profile 2564 // internal format (int64) in local store. (I.e., this is not a per-profile
2558 // pref.) 2565 // pref.)
2559 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; 2566 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time";
2560 #endif 2567 #endif
2561 2568
2562 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) 2569 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
2563 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; 2570 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff";
2564 #endif 2571 #endif
2565 2572
2566 } // namespace prefs 2573 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698