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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Rebase 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // "noinstall" to disable them. This property is usually set in the 65 // "noinstall" to disable them. This property is usually set in the
66 // master_preferences and copied into the profile preferences on first run. 66 // master_preferences and copied into the profile preferences on first run.
67 // Defaults apps are installed only when creating a new profile. 67 // Defaults apps are installed only when creating a new profile.
68 const char kDefaultApps[] = "default_apps"; 68 const char kDefaultApps[] = "default_apps";
69 69
70 // Disables screenshot accelerators and extension APIs. 70 // Disables screenshot accelerators and extension APIs.
71 // This setting resides both in profile prefs and local state. Accelerator 71 // This setting resides both in profile prefs and local state. Accelerator
72 // handling code reads local state, while extension APIs use profile pref. 72 // handling code reads local state, while extension APIs use profile pref.
73 const char kDisableScreenshots[] = "disable_screenshots"; 73 const char kDisableScreenshots[] = "disable_screenshots";
74 74
75 // Prevents certain types of downloads based on integre value:
76 // 0 - Allow all downloads (default)
77 // 1 - Disable Safe Browsing dangerous files
78 // 2 - Disable Safe Browsing potentially dangerous files
79 // 3 - Disable all downloads
80 const char kDownloadRestrictions[] = "download_restrictions";
81
75 // If set to true profiles are created in ephemeral mode and do not store their 82 // If set to true profiles are created in ephemeral mode and do not store their
76 // data in the profile folder on disk but only in memory. 83 // data in the profile folder on disk but only in memory.
77 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 84 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
78 85
79 // A boolean specifying whether the New Tab page is the home page or not. 86 // A boolean specifying whether the New Tab page is the home page or not.
80 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 87 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
81 88
82 // This is the URL of the page to load when opening new tabs. 89 // This is the URL of the page to load when opening new tabs.
83 const char kHomePage[] = "homepage"; 90 const char kHomePage[] = "homepage";
84 91
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 "settings_reset_prompt.last_triggered_for_homepage"; 2557 "settings_reset_prompt.last_triggered_for_homepage";
2551 2558
2552 #if defined(OS_ANDROID) 2559 #if defined(OS_ANDROID)
2553 // Timestamp of the clipboard's last modified time, stored in base::Time's 2560 // Timestamp of the clipboard's last modified time, stored in base::Time's
2554 // internal format (int64) in local store. (I.e., this is not a per-profile 2561 // internal format (int64) in local store. (I.e., this is not a per-profile
2555 // pref.) 2562 // pref.)
2556 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; 2563 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time";
2557 #endif 2564 #endif
2558 2565
2559 } // namespace prefs 2566 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698