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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Some oups.... :-) 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 integer value, which corresponds
79 // to DownloadPrefs::DownloadRestriction.
80 // 0 - No special restrictions (default)
81 // 1 - Block dangerous downloads
82 // 2 - Block potentially dangerous downloads
83 // 3 - Block all downloads
84 const char kDownloadRestrictions[] = "download_restrictions";
85
78 // If set to true profiles are created in ephemeral mode and do not store their 86 // 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. 87 // data in the profile folder on disk but only in memory.
80 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 88 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
81 89
82 // A boolean specifying whether the New Tab page is the home page or not. 90 // A boolean specifying whether the New Tab page is the home page or not.
83 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 91 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
84 92
85 // This is the URL of the page to load when opening new tabs. 93 // This is the URL of the page to load when opening new tabs.
86 const char kHomePage[] = "homepage"; 94 const char kHomePage[] = "homepage";
87 95
(...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 2565 // internal format (int64) in local store. (I.e., this is not a per-profile
2558 // pref.) 2566 // pref.)
2559 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; 2567 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time";
2560 #endif 2568 #endif
2561 2569
2562 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) 2570 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
2563 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; 2571 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff";
2564 #endif 2572 #endif
2565 2573
2566 } // namespace prefs 2574 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698